Skip to content

Support for Byte datatype #1383

Closed
Closed
@AmosLewis

Description

I am trying to lower GPT2 torch model to linalg in this link:
nod-ai/SHARK-Studio#341
nod-ai/SHARK-Studio#337
but get the following bug.

File "torch-mlir/build/tools/torch-mlir/python_packages/torch_mlir/torch_mlir/__init__.py", line 233, in compile
      mb.import_module(scripted._c, class_annotator, import_options)
  raise Exception(f"""
Exception: 
PyTorch TorchScript module -> torch-mlir Object Graph IR import failed with:
### Importer C++ Exception:
Unsupported import tensor type: (1,1,.,.) .....
[ CPUByteType{1,1,1024,1024} ]

I am planning to add a datatype of Byte just like this patch #1169?
Any suggestion @silvasean?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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