torch.linspace() and torch.logspace() currently throw warnings when not given steps:
torch.linspace(1, 10)
: UserWarning: Not providing a value for linspace's steps is deprecated and will throw a runtime error in a future release. This warning will appear only once per process. (Triggered internally at ../aten/src/ATen/native/RangeFactories.cpp:20.)
torch.logspace(1, 10)
UserWarning: Not providing a value for logspace's steps is deprecated and will throw a runtime error in a future release. This warning will appear only once per process. (Triggered internally at ../aten/src/ATen/native/RangeFactories.cpp:51.)
and their documentation also warns that failing to provide steps is deprecated (linspace docs, logspace docs).
We should update these operators to require steps be specified for PyTorch 1.9.
cc @gchanan @mruberry
torch.linspace() and torch.logspace() currently throw warnings when not given steps:
and their documentation also warns that failing to provide steps is deprecated (linspace docs, logspace docs).
We should update these operators to require steps be specified for PyTorch 1.9.
cc @gchanan @mruberry