Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing Python float instead of torch.Tensor for scalar arguments #313

Open
Hespe opened this issue Dec 20, 2024 · 0 comments · May be fixed by #314
Open

Allow passing Python float instead of torch.Tensor for scalar arguments #313

Hespe opened this issue Dec 20, 2024 · 0 comments · May be fixed by #314
Assignees
Labels
enhancement New feature or request

Comments

@Hespe
Copy link
Member

Hespe commented Dec 20, 2024

Many methods currently assumed that a torch.Tensor is passed for their arguments even for scalar values. This makes calling them more verbose than necessary. Instead, it would be nice if float could be passed instead.

@Hespe Hespe added the enhancement New feature or request label Dec 20, 2024
@Hespe Hespe self-assigned this Dec 20, 2024
@Hespe Hespe linked a pull request Dec 20, 2024 that will close this issue
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant