Skip to content

Support for BitwiseXor, BitwiseOr, Bitcast, and BitwiseAnd ops #4343

@josephrocca

Description

@josephrocca

New Operator

Describe the operator

The BitwiseXor, BitwiseOr, Bitcast, and BitwiseAnd ops:

  1. https://www.tensorflow.org/api_docs/python/tf/raw_ops/Bitcast
  2. https://www.tensorflow.org/api_docs/python/tf/raw_ops/BitwiseAnd
  3. https://www.tensorflow.org/api_docs/python/tf/raw_ops/BitwiseOr
  4. https://www.tensorflow.org/api_docs/python/tf/raw_ops/BitwiseXor

Can this operator be constructed using existing onnx operators?

Apparently it is not possible:

But after I took a quick check, there is no easy way to do it yet.

Is this operator used by any model currently? Which one?

Yes, the Flax BART model used by DALL-E Mini, for example, requires this op when trying to convert to ONNX format (via TF Saved Model format).

Are you willing to contribute it? (Y/N)

Yes, but I would probably require guidance since I haven't done anything like this before.

Notes

Please see this issue for context: onnx/tensorflow-onnx#1985

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: operatorIssues related to ONNX operators

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions