pytorch
002dad35 - better error message for out= ops (#88367)

Commit
2 years ago
better error message for out= ops (#88367) In cases where a tensor kwarg is actually "out=", the following error message would look nicer than this : ``` Traceback (most recent call last): File "/fsx/users/binbao/pytorch/torch/_inductor/graph.py", line 241, in call_function out = lowerings[target](*args, **kwargs) File "/fsx/users/binbao/pytorch/torch/_inductor/lowering.py", line 168, in wrapped assert not any(isinstance(x, TensorBox) for x in kwargs.values()) AssertionError ``` https://github.com/pytorch/torchdynamo/issues/1798 Pull Request resolved: https://github.com/pytorch/pytorch/pull/88367 Approved by: https://github.com/desertfire
Author
Committer
Parents
Loading