Skip to content

Commit 831c5cb

Browse files
author
Esteban Gómez
committed
Fix missing values as NaN
1 parent 32bf0ee commit 831c5cb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/moduleprofiler/profiler.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,11 @@ def count_params(
380380
data[n] = {
381381
"type": m.__class__.__name__,
382382
"trainable_params": 0,
383-
"nontrainable_params": 0
383+
"trainable_params_dtype": None,
384+
"trainable_params_size_bits": 0,
385+
"nontrainable_params": 0,
386+
"nontrainable_params_dtype": None,
387+
"nontrainable_params_size_bits": 0
384388
}
385389

386390
for p in m.parameters():

0 commit comments

Comments
 (0)