-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed reduce_sum lowering not working properly in backward graph (#408)
reduce_sum when emited in creation of backward graph did not have named parametar keep_dim. Added named parametars to the AutogradContext.op(). Passed keep_dim for reduce_sum for broadcast and element wise backward operations. Added test_batch_size for inference and training. Fix for #354 * Added named_args to the graphlib::OpType so that reduce_sum can be passed keep_dim parametar * added minimal test for which it does not work * Parametrized test_batch_size * Added test case for batch_size * Fixed missing asserts, added flag for training * moved test_batch_size to the mlir/test_features.py and broke it into two
- Loading branch information
1 parent
971ff1f
commit 38fadee
Showing
6 changed files
with
83 additions
and
14 deletions.
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
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