Skip to content

Commit

Permalink
Fix 'NoneType' object has no attribute 'shape'
Browse files Browse the repository at this point in the history
  • Loading branch information
blackkker committed Aug 3, 2022
1 parent 225f5e6 commit fd9d187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/frontend/pytorch/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def verify_model(
elif isinstance(input_data, list):
baseline_model = model_name
baseline_input = input_data
elif isinstance(input_data, torch.Tensor) or not input_data.shape:
elif isinstance(input_data, torch.Tensor) or not input_data:
baseline_model = model_name
baseline_input = [input_data]
else:
Expand Down

0 comments on commit fd9d187

Please sign in to comment.