Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
LogSoftMax export: Check temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
vandanavk committed Dec 18, 2018
1 parent b34cf35 commit a2072ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/mxnet/contrib/onnx/mx2onnx/_op_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1665,7 +1665,10 @@ def convert_logsoftmax(node, **kwargs):
name, input_nodes, attrs = get_inputs(node, kwargs)

# Converting to int
axis = int(attrs.get("axis", 1))
axis = int(attrs.get("axis", -1))
temp = attrs.get("temperature", 'None')
if temp != 'None':
raise AttributeError("ONNX supports only temperature=None")

node = onnx.helper.make_node(
'LogSoftmax',
Expand Down

0 comments on commit a2072ee

Please sign in to comment.