MCPcopy Create free account
hub / github.com/LetheSec/PLG-MI-Attack / load_optim

Function load_optim

utils.py:244–256  ·  view source on GitHub ↗

Load optimizer from checkpoint. Args: checkpoint_path (str) optim (torch.optim) Returns: optim

(checkpoint_path, optim)

Source from the content-addressed store, hash-verified

242
243
244def load_optim(checkpoint_path, optim):
245 """Load optimizer from checkpoint.
246
247 Args:
248 checkpoint_path (str)
249 optim (torch.optim)
250
251 Returns:
252 optim
253
254 """
255
256 return load_model_optim(checkpoint_path, None, optim)[1]
257
258
259def save_tensor_images(images, filename, nrow=None, normalize=True):

Callers

nothing calls this directly

Calls 1

load_model_optimFunction · 0.85

Tested by

no test coverage detected