Commit 242931c
authored
Init Scope (#338)
* Start of init scope
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Fix tests
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Javadoc updates
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Session init helpers
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Format fixes
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Make initEnv default to this.
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* More formatting fixes
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Small fixes, add native pointer based equals and hashCode to EagerOperation
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Export init ops to GraphDefs and import from them
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Test adding init ops after import
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Automatically lift constants to init if required
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Add withInitScope
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Allow init ops to depend on other init ops
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Add void withInitScope
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Lift init inputs to init as well
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Formatting
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Allow use of init input lifting
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Add forceInitialize to reinitialize session
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Replace withInitScope with liftToInitScope
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Update framework
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Rebase fixes
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Remove Java 10 API
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Check control dependencies up front
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Reorder methods
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Session constructors
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Variable with init value uses passed scope
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Change initScope to withInitScope
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Fix initScope usages
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Variable fixes
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Don't put reset ops in init scope
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* New session initialization, formatting
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Fix a test
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Fix generated names
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Comment fixes
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* More comment fixes
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Track init ops and topmost init ops separately
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Don't track topmost init ops
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Unsynchronize Session
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Fix format
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Fix not building init op
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Use init scope in variable-with-init
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Fix comments, make ranInits final
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Update toGraphDef comment
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Update Sessions comment
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Remove wildcard import
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Change init op name to Init
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Don't include NoOps in initializer list
Signed-off-by: Ryan Nett <JNett96@gmail.com>
* Fix format
Signed-off-by: Ryan Nett <JNett96@gmail.com>1 parent 4c1c271 commit 242931c
File tree
63 files changed
+1363
-1349
lines changed- tensorflow-core
- tensorflow-core-api/src
- gen/annotations/org/tensorflow/op
- main/java/org/tensorflow
- op
- core
- test/java/org/tensorflow
- op
- core
- tensorflow-core-generator/src/main/java/org/tensorflow
- op/generator
- processor/operator
- tensorflow-framework
- src
- main/java/org/tensorflow/framework
- data
- metrics
- impl
- optimizers
- test/java/org/tensorflow/framework
- data
- metrics
- optimizers
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
63 files changed
+1363
-1349
lines changedLines changed: 60 additions & 95 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
| |||
295 | 294 | | |
296 | 295 | | |
297 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
298 | 303 | | |
299 | 304 | | |
300 | 305 | | |
| |||
366 | 371 | | |
367 | 372 | | |
368 | 373 | | |
369 | | - | |
370 | | - | |
371 | 374 | | |
372 | 375 | | |
| 376 | + | |
| 377 | + | |
373 | 378 | | |
374 | 379 | | |
375 | 380 | | |
376 | 381 | | |
377 | 382 | | |
378 | 383 | | |
379 | | - | |
380 | | - | |
381 | 384 | | |
382 | 385 | | |
| 386 | + | |
| 387 | + | |
383 | 388 | | |
384 | 389 | | |
385 | 390 | | |
| |||
397 | 402 | | |
398 | 403 | | |
399 | 404 | | |
400 | | - | |
401 | 405 | | |
| 406 | + | |
402 | 407 | | |
403 | 408 | | |
404 | 409 | | |
405 | | - | |
406 | 410 | | |
| 411 | + | |
407 | 412 | | |
408 | 413 | | |
409 | 414 | | |
| |||
1952 | 1957 | | |
1953 | 1958 | | |
1954 | 1959 | | |
1955 | | - | |
1956 | | - | |
| 1960 | + | |
| 1961 | + | |
1957 | 1962 | | |
1958 | | - | |
| 1963 | + | |
| 1964 | + | |
1959 | 1965 | | |
1960 | 1966 | | |
1961 | | - | |
1962 | | - | |
| 1967 | + | |
| 1968 | + | |
1963 | 1969 | | |
1964 | 1970 | | |
1965 | 1971 | | |
| |||
1994 | 2000 | | |
1995 | 2001 | | |
1996 | 2002 | | |
1997 | | - | |
1998 | | - | |
| 2003 | + | |
| 2004 | + | |
1999 | 2005 | | |
2000 | 2006 | | |
2001 | | - | |
| 2007 | + | |
| 2008 | + | |
2002 | 2009 | | |
2003 | 2010 | | |
2004 | 2011 | | |
| |||
2008 | 2015 | | |
2009 | 2016 | | |
2010 | 2017 | | |
2011 | | - | |
2012 | | - | |
| 2018 | + | |
| 2019 | + | |
2013 | 2020 | | |
2014 | 2021 | | |
2015 | 2022 | | |
| |||
2993 | 3000 | | |
2994 | 3001 | | |
2995 | 3002 | | |
2996 | | - | |
2997 | | - | |
2998 | | - | |
2999 | | - | |
3000 | | - | |
3001 | | - | |
3002 | | - | |
3003 | | - | |
3004 | | - | |
3005 | | - | |
3006 | | - | |
3007 | | - | |
3008 | | - | |
3009 | | - | |
3010 | | - | |
3011 | | - | |
3012 | | - | |
3013 | | - | |
3014 | | - | |
3015 | | - | |
3016 | | - | |
3017 | | - | |
3018 | | - | |
3019 | | - | |
3020 | | - | |
3021 | | - | |
3022 | | - | |
3023 | | - | |
3024 | | - | |
3025 | | - | |
3026 | | - | |
3027 | | - | |
3028 | | - | |
3029 | | - | |
3030 | | - | |
3031 | | - | |
3032 | | - | |
3033 | | - | |
3034 | | - | |
3035 | | - | |
3036 | | - | |
3037 | | - | |
3038 | | - | |
3039 | | - | |
3040 | | - | |
3041 | | - | |
3042 | | - | |
3043 | | - | |
3044 | | - | |
3045 | | - | |
3046 | | - | |
3047 | | - | |
3048 | | - | |
3049 | | - | |
3050 | | - | |
3051 | | - | |
3052 | | - | |
3053 | | - | |
3054 | | - | |
3055 | | - | |
3056 | | - | |
3057 | | - | |
3058 | | - | |
3059 | | - | |
3060 | | - | |
3061 | | - | |
3062 | | - | |
3063 | | - | |
3064 | | - | |
3065 | | - | |
3066 | | - | |
3067 | | - | |
3068 | | - | |
3069 | | - | |
3070 | 3003 | | |
3071 | 3004 | | |
3072 | 3005 | | |
| |||
7947 | 7880 | | |
7948 | 7881 | | |
7949 | 7882 | | |
7950 | | - | |
7951 | | - | |
7952 | | - | |
7953 | | - | |
| 7883 | + | |
| 7884 | + | |
| 7885 | + | |
| 7886 | + | |
| 7887 | + | |
7954 | 7888 | | |
7955 | 7889 | | |
7956 | 7890 | | |
| |||
8143 | 8077 | | |
8144 | 8078 | | |
8145 | 8079 | | |
| 8080 | + | |
| 8081 | + | |
| 8082 | + | |
| 8083 | + | |
| 8084 | + | |
| 8085 | + | |
| 8086 | + | |
| 8087 | + | |
| 8088 | + | |
| 8089 | + | |
| 8090 | + | |
| 8091 | + | |
| 8092 | + | |
| 8093 | + | |
| 8094 | + | |
| 8095 | + | |
| 8096 | + | |
| 8097 | + | |
| 8098 | + | |
| 8099 | + | |
| 8100 | + | |
| 8101 | + | |
| 8102 | + | |
| 8103 | + | |
| 8104 | + | |
| 8105 | + | |
| 8106 | + | |
| 8107 | + | |
| 8108 | + | |
| 8109 | + | |
| 8110 | + | |
8146 | 8111 | | |
8147 | 8112 | | |
8148 | 8113 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
94 | 119 | | |
95 | 120 | | |
96 | 121 | | |
| |||
Lines changed: 21 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| 74 | + | |
72 | 75 | | |
73 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
| |||
250 | 255 | | |
251 | 256 | | |
252 | 257 | | |
| 258 | + | |
253 | 259 | | |
254 | 260 | | |
255 | 261 | | |
| |||
0 commit comments