Skip to content

Commit

Permalink
get attr minvalue, maxvalue, opset=6
Browse files Browse the repository at this point in the history
  • Loading branch information
PINTO0309 committed Oct 12, 2022
1 parent 4883e6a commit 1514463
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Self-Created Tools to convert ONNX files (NCHW) to TensorFlow format (NHWC). The
$ docker run --rm -it \
-v `pwd`:/workdir \
-w /workdir \
ghcr.io/pinto0309/onnx2tf:0.0.23
ghcr.io/pinto0309/onnx2tf:0.0.24
or
Expand Down
2 changes: 1 addition & 1 deletion onnx2tf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from onnx2tf.onnx2tf import convert, main

__version__ = '0.0.23'
__version__ = '0.0.24'
3 changes: 3 additions & 0 deletions onnx2tf/ops/Clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def make_node(
shape = graph_node_output.shape
dtype = graph_node_output.dtype

min_value_node = graph_node.attrs.get('min', min_value_node)
max_value_node = graph_node.attrs.get('max', max_value_node)

# Preserving Graph Structure (Dict)
tf_layers_dict[graph_node_output.name] = {
'optype': graph_node.op,
Expand Down

0 comments on commit 1514463

Please sign in to comment.