Skip to content

Commit

Permalink
eval -> ast.literal_eval
Browse files Browse the repository at this point in the history
  • Loading branch information
PINTO0309 committed May 15, 2022
1 parent 700ef70 commit 7c55843
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scc4onnx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from scc4onnx.onnx_input_order_converter import order_conversion, main

__version__ = '1.0.2'
__version__ = '1.0.3'
3 changes: 2 additions & 1 deletion scc4onnx/onnx_input_order_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
import sys
import ast
import traceback
from argparse import ArgumentParser
import onnx
Expand Down Expand Up @@ -507,7 +508,7 @@ def main():
input_op_names_and_order_dims_tmp = None
if input_op_names_and_order_dims:
input_op_names_and_order_dims_tmp = {
input_op_names_and_order_dim[0]: eval(input_op_names_and_order_dim[1]) for input_op_names_and_order_dim in input_op_names_and_order_dims
input_op_names_and_order_dim[0]: ast.literal_eval(input_op_names_and_order_dim[1]) for input_op_names_and_order_dim in input_op_names_and_order_dims
}

# channel_change_inputs
Expand Down

0 comments on commit 7c55843

Please sign in to comment.