Commit 4e4f981
fix: resolve Flax NNX static-to-data attribute error in Graph Transformer
Assign self.pe only once via if/elif/else instead of initializing to None
then reassigning, which caused a ValueError with newer Flax versions.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent ec4bd7c commit 4e4f981
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
438 | | - | |
439 | | - | |
| 437 | + | |
440 | 438 | | |
441 | 439 | | |
442 | 440 | | |
| |||
449 | 447 | | |
450 | 448 | | |
451 | 449 | | |
| 450 | + | |
| 451 | + | |
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| |||
0 commit comments