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
{{ message }}
Repository navigation
Tensor.to(Tensor) doesn't change dtype of Tensor. #653
TorchSharp provides Tensor.type_as(Tensor) to change Tensor.dtype, however, this difference from PyTorch is confusing when poirting from PyTorch. Also in many case, to() is used to apply operators to two tensors where dtype and device of them need to be compatible.
Activity
kaiidams commentedon Jul 12, 2022
TorchSharp provides
Tensor.type_as(Tensor)to changeTensor.dtype, however, this difference from PyTorch is confusing when poirting from PyTorch. Also in many case,to()is used to apply operators to two tensors wheredtypeanddeviceof them need to be compatible.NiklasGustafsson commentedon Jul 20, 2022
@kaiidams -- this will be fixed in the next release (which I will release today).
Fixed bug dotnet#653
Merge pull request #659 from NiklasGustafsson/main