Skip to content

Commit 6962f8f

Browse files
authored
Merge pull request #1084 from peterjc123/patch-1
Fix the missing axis when LogSoftmax is in graph
2 parents 0b15fe1 + e0ac468 commit 6962f8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tf2onnx/onnx_opset/math.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class RealDiv(common.BroadcastOp):
3232
pass
3333

3434

35-
@tf_op(["LeakyRelu", "LogSoftmax", "Softplus", "Softsign"])
35+
@tf_op(["LeakyRelu", "Softplus", "Softsign"])
3636
class DirectOpSinceOpset1:
3737
@classmethod
3838
def version_1(cls, ctx, node, **kwargs):
@@ -185,7 +185,7 @@ def version_8(cls, ctx, node, **kwargs):
185185
def version_12(cls, ctx, node, **kwargs):
186186
node.type = 'Clip' # clip supports all types now
187187

188-
@tf_op("Softmax")
188+
@tf_op(["LogSoftmax", "Softmax"])
189189
class Softmax:
190190
@classmethod
191191
def version_1(cls, ctx, node, **kwargs):

0 commit comments

Comments
 (0)