Update deep_atropos file to optimize performance and remove TensorFlow warning#169
Open
Uttampatel1 wants to merge 1 commit intoANTsX:masterfrom
Open
Update deep_atropos file to optimize performance and remove TensorFlow warning#169Uttampatel1 wants to merge 1 commit intoANTsX:masterfrom
Uttampatel1 wants to merge 1 commit intoANTsX:masterfrom
Conversation
Optimize the overall code for model loading and prediction to use less memory compared to the previous code. Also, remove unnecessary lines.
ntustison
reviewed
Mar 4, 2025
| input_images.append(t1[2]) | ||
| elif t1[1] is not None: | ||
| input_images.extend([t1[1], t1[2]]) | ||
| elif t1[1] is not None and t1[2] is None: |
Member
There was a problem hiding this comment.
The second and third conditions shouldn't be identical.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Optimize the overall code for model loading and prediction to use less memory compared to the previous code. Also, remove unnecessary lines. more convenience latest TensorFlow version