Allow passing Python float
instead of torch.Tensor
for scalar arguments
#313
Labels
enhancement
New feature or request
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 iffloat
could be passed instead.The text was updated successfully, but these errors were encountered: