opeltre / revert

Revert
MIT License
2 stars 0 forks source link

Fix Module.save : serialise loss & writer #17

Closed opeltre closed 2 years ago

opeltre commented 2 years ago

TODO:

opeltre commented 2 years ago

fix #16

opeltre commented 2 years ago

Dans unshift_flows.py essayer:

writer = SummaryWriter(args.output)

def write (name, val, n_it): 
    writer.add_scalar(name, val, global_step=n_it)

module.write = write

A essayer mais moins sûr que ça marche (si on appelle bien module.write avec les bons arguments dans module.fit):

writer = SummaryWriter(args.output)
module.write = writer.add_scalar
opeltre commented 2 years ago

Solves #16