Skip to content

Pad-13 does not support bool type #7811

@jiafatom

Description

@jiafatom

Describe the bug
I want to export a pytorch transformer model: longformer. The model scripts contains padding on boolean mask here
Pad-13 spec type constraint supports bool (this is newly introduced in opset 13, not 11)
but it looks onnxruntime does not support bool type for Pad-13, see here
Could we add the support for bool? Thanks.

Urgency
blocking pytorch transformer model export.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 20.04
  • ONNX Runtime installed from (source or binary): pypi
  • ONNX Runtime version: 1.7.0
  • Python version: 3.7
  • Visual Studio version (if applicable):
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version:
  • GPU model and memory:

To Reproduce

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestrequest for unsupported feature or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions