pytorch
92e1710d - Add ComplexDouble scalar creation bindings to nvFuser's Python API (#80522)

Commit
2 years ago
Add ComplexDouble scalar creation bindings to nvFuser's Python API (#80522) There is a problem that pybind11 silently converts Python's complex scalar to `bool` and uses `define_constant<bool>` overload. It was unnoticed because `0j` corresponds to `False` and tests passed, with `2j` scalar tests for `_refs.where` would fail without proper bindings. Pull Request resolved: https://github.com/pytorch/pytorch/pull/80522 Approved by: https://github.com/ngimel
Author
Committer
Parents
Loading