Skip to content

Commit

Permalink
AveragePool bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PINTO0309 committed Oct 29, 2022
1 parent 578cdd0 commit d438145
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Video speed is adjusted approximately 50 times slower than actual speed.
$ docker run --rm -it \
-v `pwd`:/workdir \
-w /workdir \
ghcr.io/pinto0309/onnx2tf:1.0.31
ghcr.io/pinto0309/onnx2tf:1.0.32
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__ = '1.0.31'
__version__ = '1.0.32'
3 changes: 2 additions & 1 deletion onnx2tf/ops/AveragePool.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def make_node(
x_rank = spatial_size + 2
strides = graph_node.attrs.get('strides', [1] * spatial_size)
dilations = graph_node.attrs.get('dilations', [1] * spatial_size)
is_known_shape = input_tensor.shape.is_fully_defined()
is_known_shape = None not in input_tensor.shape

pads = graph_node.attrs.get('auto_pad', 'NOTSET')
if pads == 'NOTSET':
Expand All @@ -76,6 +76,7 @@ def make_node(
strides=strides,
dilations=dilations,
padding='SAME_UPPER',
is_known_shape=is_known_shape,
)
if pads == same_paddings:
pads = 'SAME_UPPER'
Expand Down

0 comments on commit d438145

Please sign in to comment.