Skip to content

Postprocessing Session.Run output #15452

Answered by wschin
lilhoser asked this question in General
Discussion options

You must be logged in to vote

Not sure which part is the question. If you want to edit the exported ONNX, you can try creating your own ONNX node and insert that node to ONNX model (e.g., via onnx_model.graph.node.append(new_node) and onnx_model.graph.output.append(new_node.output[0])). If you want to figure out the word corresponding to an index (e.g., 124 -> hello), you need to check the original dictionary used to train the model -- that dictionary is not captured.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@lilhoser
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by lilhoser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants