mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
When op is unimplemented for a specific dtype Which makes more sense, than a RuntimeError Example ```python >>> import torch >>> torch.nn.Hardshrink()(torch.randint(0, 5, (10,))) NotImplementedError: "hardshrink_cpu" not implemented for 'Long' ``` release notes bc-breaking: After this release `NotImplementedError` exception will be raised when ATen operation is called on the combinaiton of input tensor dtypes it has not been implemented for Mark few more unary ops as unimplemented to satisfy foreach testing error reporting consistency between CPU and CUDA Pull Request resolved: https://github.com/pytorch/pytorch/pull/155470 Approved by: https://github.com/albanD, https://github.com/Skylion007 |
||
|---|---|---|
| .. | ||
| core | ||
| fft | ||
| lib | ||
| linalg | ||