This repository was archived by the owner on Aug 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 945
Commit 5aa35a3
[io] Add field user-defined metadata; Tweak API for tf.io.fromMemory() (#1864)
FEATURE
- This is the first PR for adding support for user-defined metadata in model artifacts. Design doc has been circulated and discussed.
- Add the field `userDefinedMetadata` to `ModelArtifacts` and `ModelJSON`.
- Deprecate the old API of `tf.io.fromMemory()` which consisted of multiple arguments. The arguments are consolidated into on in the new API.
- Add unit tests.
Towards tensorflow/tfjs#1596 1 parent 4432e82 commit 5aa35a3
3 files changed
+89
-29
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 | - | ||
26 | - | ||
27 | - | ||
28 | - | ||
29 | - | ||
25 | + | ||
30 | 26 |
| |
31 | 27 |
| |
32 | - | ||
33 | - | ||
34 | - | ||
35 | - | ||
36 | - | ||
37 | - | ||
38 | - | ||
39 | - | ||
40 | - | ||
41 | - | ||
42 | - | ||
43 | - | ||
44 | - | ||
45 | - | ||
28 | + | ||
46 | 29 |
| |
47 | 30 |
| |
48 | 31 |
| |
| |||
67 | 50 |
| |
68 | 51 |
| |
69 | 52 |
| |
70 | - | ||
53 | + | ||
71 | 54 |
| |
72 | 55 |
| |
73 | 56 |
| |
| |||
78 | 61 |
| |
79 | 62 |
| |
80 | 63 |
| |
81 | - | ||
64 | + | ||
82 | 65 |
| |
83 | - | ||
84 | - | ||
85 | - | ||
86 | - | ||
87 | - | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
88 | 97 |
| |
89 | 98 |
| |
90 | 99 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
117 | 127 |
| |
118 | - | ||
119 | - | ||
128 | + | ||
129 | + | ||
130 | + | ||
131 | + | ||
132 | + | ||
120 | 133 |
| |
121 | 134 |
| |
122 | 135 |
| |
123 | 136 |
| |
137 | + | ||
124 | 138 |
| |
125 | 139 |
| |
126 | - | ||
140 | + | ||
127 | 141 |
| |
128 | 142 |
| |
129 | 143 |
| |
130 | 144 |
| |
131 | 145 |
| |
146 | + | ||
147 | + | ||
148 | + | ||
149 | + | ||
150 | + | ||
151 | + | ||
152 | + | ||
153 | + | ||
154 | + | ||
155 | + | ||
156 | + | ||
157 | + | ||
158 | + | ||
159 | + | ||
160 | + | ||
161 | + | ||
162 | + | ||
163 | + | ||
164 | + | ||
165 | + | ||
166 | + | ||
167 | + | ||
168 | + | ||
169 | + | ||
170 | + | ||
171 | + | ||
172 | + | ||
132 | 173 |
| |
133 | 174 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
275 | 275 |
| |
276 | 276 |
| |
277 | 277 |
| |
278 | + | ||
279 | + | ||
280 | + | ||
281 | + | ||
282 | + | ||
278 | 283 |
| |
279 | 284 |
| |
280 | 285 |
| |
| |||
330 | 335 |
| |
331 | 336 |
| |
332 | 337 |
| |
338 | + | ||
339 | + | ||
340 | + | ||
341 | + | ||
342 | + | ||
333 | 343 |
| |
334 | 344 |
| |
335 | 345 |
| |
|
0 commit comments