Skip to content

[Core ML] Rank-0 Input #2769

Closed
Closed
@YifanShenSZ

Description

@YifanShenSZ

When we try to partition certain models on to Core ML delegation, we were hit by

ValueError: Rank-0 (input None) is unsupported

This is because Core ML does not support rank-0 (scalar) input, yet ExecuTorch tries to send a graph with scalar input to Core ML backend

We will need to wrap those scalars into rank-1 shape-1 tensors before sending to Core ML backend

cc @JacobSzwejbka @angelayi @kimishpatel @cymbalrush

Metadata

Metadata

Assignees

Labels

module: coremlIssues related to Apple's Core ML delegation and code under backends/apple/coreml/module: exirIssues related to Export IR and the code under exir/triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions