opt_utils.py - cmikke97/Automatic-Malware-Signature-Generation GitHub Wiki

In this page

Imported Modules

  • import os - provides a portable way of using operating system dependent functionality - os documentation
  • import tempfile - used to create temporary files and directories - tempfile documentation

  • import mlflow - open source platform for managing the end-to-end machine learning lifecycle - mlflow documentation
  • import torch - tensor library like NumPy, with strong GPU support - pytorch documentation

Back to top

Classes and functions

get_opt_state(opt, path, epoch) (function) - Load optimizer state from path.

  • opt (arg) - Optimizer
  • path (arg) - Path where to find the optimizer checkpoint
  • epoch (arg) - Epoch to retrieve the optimizer state of

save_opt_state(opt, epoch) (function) - Save optimizer state to temporary directory and then log it with mlflow.

  • opt (arg) - Optimizer
  • epoch (arg) - Epoch to save the optimizer state of

Back to top

⚠️ **GitHub.com Fallback** ⚠️