ExecuTorch Scalar to() supports fewer types than c10::Scalar, breaking source compatibility #9500
Labels
good first issue
Good for newcomers
module: runtime
Issues related to the core runtime and code under runtime/
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
🐛 Describe the bug
some_scalar.to<float>()
is legal for c10::Scalar, but not ExecuTorch's Scalar. https://github.com/pytorch/executorch/blob/main/runtime/core/portable_type/scalar.h#L26 says it is a "source-compatible subset" of c10::Scalar.Versions
main
cc @larryliu0820 @JacobSzwejbka
The text was updated successfully, but these errors were encountered: