Skip to content

input with dynamic dimensions for depthwise_conv2d #1961

Open
@tdsuper

Description

@tdsuper

I am trying to convert a tensorflow model with depthwise_conv2d operation to onnx.

However, if the input has dynamic dimensions such as tf.placeholder(tf.float32, [1, None, None, 3], name='input'), tf2onnx will report error input channel must be positive.

I have also tried to specify the width and height of input, tf2onnx can succefully convert the model. It seems like that k_input_channels corresponds to the channels dimension of input. But I do not know why k_input_channels would be -1 for the input with dynamic dimensions.

I do not know whether the depthwise convolution does not support dynamic input currently or I have missed something.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions