Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported op: PartitionedCall #2347

Open
geiche735 opened this issue Jul 3, 2024 · 0 comments
Open

Unsupported op: PartitionedCall #2347

geiche735 opened this issue Jul 3, 2024 · 0 comments
Labels
unsupported ops Issues related to unsupported operators

Comments

@geiche735
Copy link

New Operator

PartitionedCall

Describe the operator

This operator is needed for any ConvNeXt Keras implementation conversion to ONNX

Do you know this operator be constructed using existing ONNX operators?

Not sure.

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

ConvNeXt Keras implementation all sizes (Large, XL, etc)

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

N

Notes

When converting the model to ONNX, I get the following errors:

Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_0_block_0_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_0_block_1_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_0_block_2_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_1_block_0_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_1_block_1_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_1_block_2_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_0_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_1_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_2_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_3_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_4_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_5_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_6_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_7_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_8_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_9_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_10_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_11_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_12_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_13_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_14_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_15_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_16_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_17_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_18_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_19_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_20_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_21_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_22_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_23_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_24_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_25_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_2_block_26_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_3_block_0_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_3_block_1_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Tensorflow op [sequential/convnext_xlarge/convnext_xlarge_stage_3_block_2_depthwise_conv/PartitionedCall: PartitionedCall] is not supported
Unsupported ops: Counter({'PartitionedCall': 36})

This can be easily recreated with the following code:

import tensorflow as tf
import tf2onnx

pretrained_model= tf.keras.applications.ConvNeXtXLarge(include_top=False,
                   input_shape=(112,112,3),
                   pooling='avg',classes=3,
                   weights='imagenet')

onnx_model, _ = tf2onnx.convert.from_keras(pretrained_model)

I receive the same errors when using the command line interface with tf2onnx and using a saved ConvNeXt model.

Also, I have seen similar issues such as in #1864 requesting this op but that they have not been updated. Was a solution or workaround already created for this?

Thanks for any help.

@geiche735 geiche735 added the unsupported ops Issues related to unsupported operators label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unsupported ops Issues related to unsupported operators
Projects
None yet
Development

No branches or pull requests

1 participant