Skip to content

Build gradient graph starting at the loss alone - #17240

Merged
baijumeswani merged 4 commits into
mainfrom
baijumeswani/gradient-builder-from-loss-node-only
Aug 24, 2023
Merged

Build gradient graph starting at the loss alone#17240
baijumeswani merged 4 commits into
mainfrom
baijumeswani/gradient-builder-from-loss-node-only

Conversation

@baijumeswani

Copy link
Copy Markdown
Contributor

Previously, the training offline utility was building the gradient graph starting from all outputs of the onnx model.

Since the loss is already embedded in the model, it can be assumed that only the loss gradient is expected to be the starting point of the backward graph.

This pull request avoids building the gradient graph from all available graph outputs.

@baijumeswani baijumeswani added the training issues related to ONNX Runtime training; typically submitted using template label Aug 21, 2023
@baijumeswani
baijumeswani requested review from askhade and pengwa August 21, 2023 21:17
pengwa
pengwa previously approved these changes Aug 22, 2023

@pengwa pengwa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a comment here for explaination, or print something to users to let them be aware of this.

@baijumeswani
baijumeswani merged commit 34d18ee into main Aug 24, 2023
@baijumeswani
baijumeswani deleted the baijumeswani/gradient-builder-from-loss-node-only branch August 24, 2023 06:54
@baijumeswani

Copy link
Copy Markdown
Contributor Author

Thank you for the review @pengwa :)

@faxu faxu added the triage:approved Approved for cherrypicks for release label Aug 24, 2023
snnn pushed a commit that referenced this pull request Aug 28, 2023
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

training issues related to ONNX Runtime training; typically submitted using template triage:approved Approved for cherrypicks for release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants