forked from tensorflow/tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose RunOptions and RunOutputs to Python's Run().
The Run() call that takes these protos previously only worked in C++. Example usage in Python (see also new unit test in session_test.py): sess.run(constant_op.constant(1.0), options=run_options, run_outputs=run_outputs) A thin TF_Buffer struct is introduced to the C API, which takes care of handling in/out bytes. For instance, the "in protobuf" RunOptions is serialized to bytes, which then get typemap'd to TF_Buffer. The "out protobuf" RunOutputs is handled analogously. Change: 117152952
- Loading branch information
1 parent
80344f3
commit b54ad57
Showing
7 changed files
with
185 additions
and
47 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
Oops, something went wrong.