mirror of https://github.com/llvm/torch-mlir
Augmented calls to yaml.load to use the safe loader.
parent
25951c4e1e
commit
58041a4713
|
@ -30,7 +30,7 @@ if not TORCH_INCLUDE_DIR.is_dir():
|
|||
TORCHGEN_DIR = Path(torchgen.__path__[0]).resolve()
|
||||
TORCH_MLIR_DIR = Path(__file__).resolve().parent.parent
|
||||
|
||||
# Safely load fast C Yaml loader/dumper if they are available
|
||||
# Safely load fast C Yaml loader if it is are available
|
||||
try:
|
||||
from yaml import CSafeLoader as Loader
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in New Issue