Skip to content

Commit e1a7570

Browse files
hwangdeyufatcat-z
andcommitted
remove unuse comments
Signed-off-by: Deyu Huang <[email protected]> Co-authored-by: Jay Zhang <[email protected]>
1 parent 20dc5ac commit e1a7570

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tf2onnx/convert.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,9 @@ def main():
221221

222222
if args.load_op_libraries:
223223
for op_filepath in args.load_op_libraries:
224-
# the path in tf.load_op_library() must be absolute path.
225-
if os.path.exists(op_filepath) and not os.path.isabs(op_filepath) and filename.endswith(".so"):
224+
# change relative path to absolute path to satisfy the tf.load_op_library().
225+
if os.path.exists(op_filepath) and not os.path.isabs(op_filepath):
226226
op_filepath = os.getcwd() + "/" + op_filepath
227-
logger.info("Load the tensorflow custom ops library so file from: %s", format(op_filepath))
228227
tf.load_op_library(op_filepath)
229228
if args.graphdef:
230229
graph_def, inputs, outputs = tf_loader.from_graphdef(args.graphdef, args.inputs, args.outputs)

0 commit comments

Comments
 (0)