mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Fixes #126012. `from` is a reserved keyword in Python, thus we can't make the C++ impl available with `from` as function parameter. This PR changes the name to `from_` and also adjusts the docs. If we want to preserve backwards compatibility, we can leave the C++ name as-is and only fix the docs. However, `torch.can_cast(from_=torch.int, to=torch.int)` won't work then. Pull Request resolved: https://github.com/pytorch/pytorch/pull/126030 Approved by: https://github.com/albanD |
||
|---|---|---|
| .. | ||
| check_forward_backward_compatibility.py | ||
| dump_all_function_schemas.py | ||