Track and save only changed w and epsilon
This commit is contained in:
parent
fba40c9b83
commit
f3385b34ac
1 changed files with 35 additions and 33 deletions
|
@ -452,6 +452,7 @@ with torch.no_grad():
|
||||||
eps_xy[id], dtype=torch.float64
|
eps_xy[id], dtype=torch.float64
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if cfg.network_structure.w_trainable[id] is True:
|
||||||
# Save the new values
|
# Save the new values
|
||||||
np.save(
|
np.save(
|
||||||
cfg.weight_path
|
cfg.weight_path
|
||||||
|
@ -472,6 +473,7 @@ with torch.no_grad():
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if cfg.network_structure.eps_xy_trainable[id] is True:
|
||||||
np.save(
|
np.save(
|
||||||
cfg.eps_xy_path
|
cfg.eps_xy_path
|
||||||
+ "/EpsXY_L"
|
+ "/EpsXY_L"
|
||||||
|
|
Loading…
Reference in a new issue