Skip to content

Commit 77b0602

Browse files
CLU Authorscopybara-github
authored andcommitted
Creating a NNX model with no bias results in a None being passed to the overview.
PiperOrigin-RevId: 720549126
1 parent b4e47eb commit 77b0602

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

clu/parameter_overview.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ def count_parameters(params: _ParamsContainer) -> int:
9898

9999

100100
def _make_row(name, value) -> _ParamRow:
101+
if value is None:
102+
return _ParamRow(
103+
name=name,
104+
shape=(),
105+
dtype="",
106+
size=0,
107+
)
101108
return _ParamRow(
102109
name=name,
103110
shape=value.shape,

0 commit comments

Comments
 (0)