Skip to content

Commit 5e43ad2

Browse files
committed
Update jaxComponent.py
Added support for turning off autosave
1 parent 953068c commit 5e43ad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ngclearn/components/jaxComponent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def save(self, directory: str):
3737
file_name = directory + "/" + self.name + ".npz"
3838
data = {}
3939
for comp_name, comp in self.compartments:
40-
if not comp.targeted:
40+
if not comp.targeted and comp.auto_save:
4141
data[comp_name] = comp.get()
4242
jnp.savez(file_name, **data)
4343

0 commit comments

Comments
 (0)