Commit 0468a8d
Default to wrapping optimizer.Apply in learner variable_scope.
optimizer.Apply can create variables. The variables created by different
optimizers can conflict with the same name in eager mode (there is no variable
name auto-uniquification in eager mode). Thus manually wrapping them in a
variable scope is necessary.
Also delete an unused function.
PiperOrigin-RevId: 4153444961 parent 9ddf63a commit 0468a8d
1 file changed
+4
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | 234 | | |
252 | 235 | | |
253 | 236 | | |
| |||
0 commit comments