Skip to content

ExecuTorch Scalar to() supports fewer types than c10::Scalar, breaking source compatibility #9500

Open
@swolchok

Description

@swolchok

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersmodule: runtimeIssues related to the core runtime and code under runtime/triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    Status

    To triage

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions