Skip to content

Commit

Permalink
[one-cmds] Explict import importlib modules (#11273)
Browse files Browse the repository at this point in the history
This will revise to explictly import importlib sub modules.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
  • Loading branch information
seanshpark authored Aug 18, 2023
1 parent c3afc94 commit 9dfb02c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion compiler/one-cmds/one-import-pytorch
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
# limitations under the License.

import argparse
import importlib
import importlib.machinery
import importlib.util
import inspect
import os
import sys
Expand Down
3 changes: 2 additions & 1 deletion compiler/one-cmds/onelib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
import argparse
import configparser
import glob
import importlib
import importlib.machinery
import importlib.util
import ntpath
import os
import subprocess
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
# PyTorch Example manager

import torch
import importlib
import importlib.machinery
import importlib.util
import argparse
import os

Expand Down

0 comments on commit 9dfb02c

Please sign in to comment.