Commit 9dba161
fix: generator deduplicates and merges attribute + registration discovery
TrainableParameterGenerator now ALWAYS runs RegisterTrainableParameter
discovery (not just when attributes are missing) and merges results,
deduplicating by field name. This fixes layers like LayerNormalization
where only 1 of 2 fields had [TrainableParameter] — the generator now
finds both _gamma and _beta.
Also skips nullable fields from registration discovery to avoid
CS8601 errors (e.g., DeformableConvolutionalLayer's optional mask).
Fixed AudioVisualCorrespondence InitializeLayers build errors.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent bd3c54b commit 9dba161
1 file changed
+14
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
126 | 127 | | |
| 128 | + | |
127 | 129 | | |
| 130 | + | |
128 | 131 | | |
129 | 132 | | |
130 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
131 | 137 | | |
132 | 138 | | |
133 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
134 | 142 | | |
135 | 143 | | |
136 | 144 | | |
| 145 | + | |
137 | 146 | | |
138 | 147 | | |
139 | | - | |
140 | 148 | | |
141 | 149 | | |
142 | 150 | | |
| |||
0 commit comments