Commit e1a90cf
authored
[ππ½πΏ] changes to main this commit is based on (#337)
We cannot make the dataclass frozen when doing this, but this enables TF
to automatically find trainable variables within GraphNetworkLayer
objects which means we can get rid of the somewhat hacky
_get_trainable_variables function that subclasses were supposed to
override. This successfully trains models that would otherwise fail to
converge if none of the graph layers were trainable.
This closes #323.1 parent 9ca566a commit e1a90cf
File tree
2 files changed
+3
-13
lines changed- gematria
- granite/python
- model/python
2 files changed
+3
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | 293 | | |
300 | 294 | | |
301 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1331 | 1331 | | |
1332 | 1332 | | |
1333 | 1333 | | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | 1334 | | |
1338 | 1335 | | |
1339 | 1336 | | |
| |||
1367 | 1364 | | |
1368 | 1365 | | |
1369 | 1366 | | |
1370 | | - | |
1371 | 1367 | | |
1372 | 1368 | | |
1373 | 1369 | | |
1374 | | - | |
| 1370 | + | |
1375 | 1371 | | |
1376 | 1372 | | |
1377 | 1373 | | |
| |||
0 commit comments