Skip to content

Illegal "IsScalar" node encountered in exported ONNX model #1263

@yuanyao-nv

Description

@yuanyao-nv

An exported model contains an IsScalar op which is not in the ONNX spec.
image

Seems like it comes from the use of common_ops.IsScalar in aten_mean_dim.

Env:
torch 2.3.0.dev20240202+cu121
onnxscript 0.1.0.dev20240203
MONAI installed with pip3 install git+https://github.com/Project-MONAI/MONAI@0.8.1#egg=MONAI

Metadata

Metadata

Assignees

Labels

module: torchlibRelated to the torch/aten function lib in development

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions