Skip to content

Commit

Permalink
Creating a NNX model with no bias results in a None being passed to t…
Browse files Browse the repository at this point in the history
…he overview.

PiperOrigin-RevId: 720549126
  • Loading branch information
CLU Authors authored and copybara-github committed Jan 28, 2025
1 parent b4e47eb commit 77b0602
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions clu/parameter_overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ def count_parameters(params: _ParamsContainer) -> int:


def _make_row(name, value) -> _ParamRow:
if value is None:
return _ParamRow(
name=name,
shape=(),
dtype="",
size=0,
)
return _ParamRow(
name=name,
shape=value.shape,
Expand Down

0 comments on commit 77b0602

Please sign in to comment.