You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice that using the torchscript exporter, ie using the --torchscript-onnx flag, all the exported HF models contain a SoftmaxCrossEntropyLoss node at the end that compares the model output with the true labels. Why is training-related ops showing up in the exported model and is there a way to disable such ops?
I think it is the eval path that's being run, since is_training is still False. One can also replace --performance with --accuracy so that args.use_eval_mode doesn't get overwritten to False. But the exported model still contains a SoftmaxCrossEntropyLoss node.
I notice that using the torchscript exporter, ie using the
--torchscript-onnx
flag, all the exported HF models contain aSoftmaxCrossEntropyLoss
node at the end that compares the model output with the true labels. Why is training-related ops showing up in the exported model and is there a way to disable such ops?The export command I'm using is:
The text was updated successfully, but these errors were encountered: