Skip to content

Conversation

@AdamLouly
Copy link
Contributor

loss function extra inputs.

Currently, the loss functions in onnxblock expect exactly two inputs in their build method.
Occasionally, models may pass additional inputs, causing the build function to fail.
To solve this issue, we can let users pass a list of loss input names to be used in the loss function.

baijumeswani
baijumeswani previously approved these changes Feb 28, 2024
@AdamLouly AdamLouly merged commit d5606cd into main Feb 29, 2024
@AdamLouly AdamLouly deleted the adamlouly/loss_input_names_artifacts branch February 29, 2024 21:40
zz002 pushed a commit to zz002/onnxruntime that referenced this pull request Mar 7, 2024
…icrosoft#19705)

# loss function extra inputs.
Currently, the loss functions in onnxblock expect exactly two inputs in
their build method.
Occasionally, models may pass additional inputs, causing the build
function to fail.
To solve this issue, we can let users pass a list of loss input names to
be used in the loss function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants