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
For many ops dtype parameter can be provided, and it should be preferred (from readability and performance point of views) to use it instead of converting the op results to a different type.
For example, torch.arange(1, N).float() should be changed to torch.arange(1, N, dtype=torch.float32)