Skip to content

Commit

Permalink
Support for channel_transpose
Browse files Browse the repository at this point in the history
  • Loading branch information
PINTO0309 committed Oct 15, 2022
1 parent a0a7a19 commit 6514758
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,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.33
ghcr.io/pinto0309/onnx2tf:1.0.0
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.33'
__version__ = '1.0.0'
6 changes: 6 additions & 0 deletions onnx2tf/ops/PRelu.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
inverted_operation_enable_disable,
explicit_broadcast,
make_tf_node_info,
channel_transpose,
)


Expand Down Expand Up @@ -65,6 +66,11 @@ def make_node(
y=slope,
)

slope = channel_transpose(
const_or_var_1=input_tensor,
const_or_var_2=slope,
)

graph_node_output: gs.Variable = graph_node.outputs[0]
shape = graph_node_output.shape
dtype = graph_node_output.dtype
Expand Down

0 comments on commit 6514758

Please sign in to comment.