Skip to content

Commit

Permalink
updated imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Geeks-Sid committed Jul 28, 2023
1 parent 130c99d commit d98472c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions GANDLF/utils/modelio.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import os, hashlib, pkg_resources, subprocess
import hashlib
import os
import subprocess
from typing import Any, Dict

import torch

from .generic import get_unique_timestamp
from ..version import __version__
from typing import Dict, Any
from .generic import get_unique_timestamp

# these are the base keys for the model dictionary to save
model_dict_full = {
Expand All @@ -27,11 +30,6 @@
initial_model_path_end = "_initial.pth.tar"


import os
import torch
import subprocess


def optimize_and_save_model(model, params, path, onnx_export=True):
"""
Perform post-training optimization and save it to a file.
Expand Down

0 comments on commit d98472c

Please sign in to comment.