Is the Gradient Operator already supported? #5892
Replies: 1 comment
-
I am just a user so take my comment with almost no authority. The gradient ops are specified per-op. There is not a global I don't think you actually need to add the |
Beta Was this translation helpful? Give feedback.
-
Hello, is https://github.com/onnx/onnx/blob/master/docs/Operators.md#aionnxpreviewtraininggradient already supported?
I'm trying to create a toy front-end that allows creation of training graphs and then uses ONNX for the training itself: https://github.com/tiberiusferreira/onnx-experiment
But I've ran into a problem trying to use the Gradient operator. I want to use this operator so I get more control over the training loop.
I have compiled ONNX runtime from source with training enabled and get the error:
when running this graph:
with this code:
Also, is there a way to use onnxruntime.training.TrainingSession to just run a graph with Gradient ops and get the result instead of having to setup a ORTTrainer?
Beta Was this translation helpful? Give feedback.
All reactions