-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
False
-
-
False
-
-
-
-
- 🕵️♂️ Detected with [FACTO](https://github.com/meta-pytorch/FACTO)
-
-
-
- 🐛 Describe the bug
-
The ATen op succeeds but torch.export fails.
We should either raise this error in the ATen op as well, or allow it when exporting
```python
import torch
import torch.nn as nn
class HardtanhModel(nn.Module):
def _init_(self):
super(HardtanhModel, self)._init_()
def forward(self, x):
return torch.ops.aten.hardtanh(x, min_val=2, max_val=0)
model = HardtanhModel()
x = torch.ones([3])
- this succeeds
model
- this fails
- ValueError: min_val cannot be greater than max_val
torch.export.export(model, (x,))
```
-
-
- Versions
-
nightly
cc @malfet @albanD @chauhang @penguinwu @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @angelayi @suo @ydwu4