Skip to content

Unsupported by backend lowering: torch.operator op  #380

@PeiMu

Description

@PeiMu

I’m new to the torch-mlir, and I’m trying it with a simple op, but met such error:

error: unsupported by backend lowering: torch.operator op
note: see current operation: %41 = “torch.operator”(%38, %40) {name = “aten.maximum”} : (!torch.tensor<[?,?],f32>, !torch.tensor<[?,?],f32>) → !torch.tensor
note: this is likely due to a missing op that needs to be generated by torch_ods_gen.py
Traceback (most recent call last):
File “/torch-mlir/examples/iou_of.py”, line 119, in
compiled = compile_module(mlp_module)
File “/torch-mlir/examples/iou_of.py”, line 99, in compile_module
pm.run(mb.module)
RuntimeError: Failure while executing pass pipeline.

As far as I’m concerned, such an error means there’s something wrong in the pass manager of “torch-backend-to-linalg-on-tensors-backend-pipeline”. But I have no idea how to fix that or is there an error with my code?

Thanks!


I proposed such question in the community too:
https://llvm.discourse.group/t/unsupported-by-backend-lowering-torch-operator-op/4590

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions