Skip to content

Commit

Permalink
[mmf][fix]Assertion message to match if condition
Browse files Browse the repository at this point in the history
Summary: Correction of assertion message on the first dimension .

Reviewed By: apsdehal

Differential Revision: D22860233

fbshipit-source-id: d8280d81a84ee23b51512f987302b4397318b0a5
  • Loading branch information
Hu Xu authored and facebook-github-bot committed Aug 1, 2020
1 parent 7cdbf8c commit 9ba7af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmf/common/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def add_field(self, field, data):
"have same size as existing tensor "
"fields in SampleList. "
"Passed size: {}, Required size: {}".format(
len(data), len(self[fields[0]])
len(data), len(self[tensor_field])
)
)

Expand Down

0 comments on commit 9ba7af6

Please sign in to comment.