You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I spent a while trying to get this set up but found it was very difficult to deal with the different integer and real types getting cast appropriately. It'd probably be better to define torch_scalar as a rank-1 torch_tensor with a single element, as done in #286.
The Torch C++ API includes a
Scalar
class, which should streamline handling scalar values in the autograd work.We should wrap this class as
torch_scalar
, as well as it's core functionality.The text was updated successfully, but these errors were encountered: