Skip to content

Commit

Permalink
Merge branch 'fix_dynamo_mock_error' of https://github.com/Oneflow-In…
Browse files Browse the repository at this point in the history
…c/oneflow into fix_dynamo_mock_error
  • Loading branch information
strint committed Aug 24, 2023
2 parents 025d4c5 + ccac35e commit 679e0d5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/oneflow/framework/args_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ def __repr__(self):
repr_str += "OPAQUE"

if isinstance(self._value, self._tensor_type):
repr_str += ", value: tensor(" + str(self._value.shape) + ", " + str(self._value.dtype) + ")"
repr_str += (
", value: tensor("
+ str(self._value.shape)
+ ", "
+ str(self._value.dtype)
+ ")"
)
elif (
_is_raw_type(self._value, dict)
or _is_raw_type(self._value, OrderedDict)
Expand Down

0 comments on commit 679e0d5

Please sign in to comment.