-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V2 staging new model version #5080
Merged
Merged
Changes from 19 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
2130c39
Make modelCheck have flavors of error messages
vincentpierre a03e8a7
ONNX exporter v3
vincentpierre ad7fc3a
Using a better CheckType and a switch statement
vincentpierre 59cd5f9
Removing unused message
vincentpierre 4dec29b
More tests
vincentpierre abfb268
Use an enum for valid versions and use GetVersion on model directly
vincentpierre 93e18b5
Maybe the model export version a static constant in Python
vincentpierre 4afde10
Use static constructor for FailedCheck
vincentpierre 393f146
Use static constructor for FailedCheck
vincentpierre d305b5c
Modifying the docstrings
vincentpierre 067933e
renaming LegacyDiscreteActionOutputApplier
vincentpierre 24af8ab
removing testing code
vincentpierre 8a4cadd
better warning message
vincentpierre bb9ddd6
Nest the CheckTypeEnum into the FailedCheck class
vincentpierre dc4865b
Update com.unity.ml-agents/Runtime/Inference/BarracudaModelParamLoade…
vincentpierre 405b18a
Adding a line explaining that legacy tensor checks are for versions 1…
vincentpierre fb459a7
Modifying the changelog
vincentpierre b79d44e
Exporting all the branches size instead of omly the sum (#5092)
vincentpierre fa22688
addressing comments
vincentpierre f6317fd
Update com.unity.ml-agents/Runtime/Inference/BarracudaModelParamLoade…
vincentpierre 1b48e4b
readding tests
vincentpierre 7d1d336
Adding a comment around the new DiscreteOutputSize method
vincentpierre a124c96
Clearer warning : Model contains unexpected input > Model requires un…
vincentpierre 61412ad
Fixing a bug in the case where the discrete action tensor does not exist
vincentpierre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a behavior change for legacy models, right? Is it correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not. (Unless I messed it up)
Because discreteOutputShape is currently a tensor of shape 1 ([sum_of_branches]) and will be changed to be ([branh0_size, branch1_size, ...]). So doing the sum does the same thing wether it is legacy or new.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks. Could you leave that as a comment here for the future readers?