Commit daeb257
authored
Native functions v2 (#233)
* Initial native function use
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Allow body constants
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Fix body forbids
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Use default eager session for tensor calls
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Use default eager for single tensor call too
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Get functions from graph
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Start of saver support
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Update loading, detect statefulness, use PartitionedCall
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Start of dependencies
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Support dependencies
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Remove unwrapping
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Proper attribute setters
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Add ignored gradient test
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Rebase fix
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Op generation for functions
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* Rebase fix
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* SavedFunction for running functions from SavedModelBundles
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Review fixes
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Generation and better javadoc
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Rework pointer scopes
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
* SessionFunction instead of SavedModelBundle specific class
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Add CallableFunction javadoc
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Remove obsolete test
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Rebase fix
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Formatting fixes and nits
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Add session function test, Signature.builder with name
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Remove extra synchronization
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Formatting
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* New names
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Note on SavedModel functions
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Fix tests
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Rename name method
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Re-add tests w/ SessionFunction
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Helper methods for saving
Signed-off-by: Ryan Nett <JNett96@gmail.com>1 parent 3b4533c commit daeb257
File tree
25 files changed
+2588
-864
lines changed- tensorflow-core/tensorflow-core-api/src
- gen
- annotations/org/tensorflow/op
- java/org/tensorflow/internal/c_api
- main/java/org/tensorflow
- internal/c_api
- presets
- op/core
- test/java/org/tensorflow
- op/core
25 files changed
+2588
-864
lines changedLines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
1116 | 1119 | | |
1117 | 1120 | | |
1118 | 1121 | | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1119 | 1147 | | |
1120 | 1148 | | |
1121 | 1149 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments