Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pytorch_parser.py (Typo "Pytorch"→"PyTorch") #948

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mmdnn/conversion/pytorch/pytorch_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_weight_name(self, node):
def __init__(self, model_file_name, input_shape):
super(PytorchParser, self).__init__()
if not os.path.exists(model_file_name):
print("Pytorch model file [{}] is not found.".format(model_file_name))
print("PyTorch model file [{}] is not found.".format(model_file_name))
assert False
# test

Expand Down Expand Up @@ -128,7 +128,7 @@ def _set_output_shape(self, source_node, IR_node):
new_dim = shape.dim.add()

if not shape_pytorch:
print("Warning: Pytorch cannot inference outputshape of \"{}\" with operator \"{}\". Setting outputshape manually in json file is alternative .".format(source_node.name, source_node.type))
print("Warning: PyTorch cannot inference outputshape of \"{}\" with operator \"{}\". Setting outputshape manually in json file is alternative .".format(source_node.name, source_node.type))
IR_node.attr["_output_shapes"].list.shape.extend([shape])
return

Expand Down