MCPcopy Create free account
hub / github.com/POSTECH-CVLab/PyTorch-StudioGAN / save_model_c

Function save_model_c

src/utils/misc.py:403–405  ·  view source on GitHub ↗
(states, mode, RUN)

Source from the content-addressed store, hash-verified

401
402
403def save_model_c(states, mode, RUN):
404 ckpt_path = join(RUN.ckpt_dir, "model=C-{mode}-best-weights.pth".format(mode=mode))
405 torch.save(states, ckpt_path)
406
407
408def find_string(list_, string):

Callers

nothing calls this directly

Calls 1

saveMethod · 0.80

Tested by

no test coverage detected