Skip to content

Commit 9c8e9e1

Browse files
Merge pull request #968 from onnx/rashuai/QueueDequeueManyV2
support QueueDequeueManyV2
2 parents 4bba41c + 0ca1d60 commit 9c8e9e1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tf2onnx/onnx_opset/generator.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,15 @@ def version_8(cls, ctx, node, **kwargs):
194194
ctx.remove_node(node.name)
195195
ctx.add_graph_input(output_names[0], type_0, shape_0)
196196
ctx.add_graph_input(output_names[1], type_1, shape_1)
197+
198+
199+
@tf_op("QueueDequeueManyV2")
200+
class QueueDequeueManyV2:
201+
@classmethod
202+
def version_8(cls, ctx, node, **kwargs):
203+
outputs = node.output
204+
shapes = node.output_shapes
205+
dtypes = node.output_dtypes
206+
ctx.remove_node(node.name)
207+
for i, output in enumerate(outputs):
208+
ctx.add_graph_input(output, dtypes[i], shapes[i])

0 commit comments

Comments
 (0)