forked from PaddlePaddle/Paddle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the Module class. (PaddlePaddle#33)
* Update return types of some methods in Instruction class and Function class. * Add methods for Module class, including ctor, ToProto, ToString, etc. Add the unit test for Module. * Prohibit copying and assignment of Module class. * Add RawIterator support for instructions() and functions(). * Use the reference type for the range-for usage. * Add more comments for Module and RawIterator. * Fix some check errors and typos. * Add PreconditionNotMet wrappers for error messages. * Rename RawIterator by UnboxingIterator. * Add `find_if` usage for func->instructions().
- Loading branch information
Showing
13 changed files
with
539 additions
and
120 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
Oops, something went wrong.