Commit 1f535b0
Fixes problem when calling the provided model_fn.
While trying out nsl, I discovered a problem with arguments when calling the inner model_fn. I tried to modify my code and adding a unused 'config' argument, but the error just moved to the lines I changed. In fact, if your model accepts 'params', that would have always fail.
PiperOrigin-RevId: 2925368571 parent de59893 commit 1f535b0
File tree
1 file changed
+9
-5
lines changed- neural_structured_learning/estimator
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
| |||
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
107 | | - | |
| 111 | + | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| |||
0 commit comments