-
Notifications
You must be signed in to change notification settings - Fork 667
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
Fix dynamo mock error #10318
Fix dynamo mock error #10318
Conversation
…fix_dynamo_mock_error
Code got formatted by CI. Please request CI again if you still want to have this PR merged. If the PR is from a forked repo, please download the patch files from the GitHub Actions web page and apply them locally. |
View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/10318/ |
Speed stats:
|
…c/oneflow into fix_dynamo_mock_error
Code got formatted by CI. Please request CI again if you still want to have this PR merged. If the PR is from a forked repo, please download the patch files from the GitHub Actions web page and apply them locally. |
View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/10318/ |
Speed stats:
|
Code got formatted by CI. Please request CI again if you still want to have this PR merged. If the PR is from a forked repo, please download the patch files from the GitHub Actions web page and apply them locally. |
View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/10318/ |
Speed stats:
|
…c/oneflow into fix_dynamo_mock_error
Speed stats:
|
Speed stats:
|
Speed stats:
|
View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/10318/ |
elif ( | ||
_is_raw_type(self._value, dict) | ||
or _is_raw_type(self._value, OrderedDict) | ||
or _is_raw_type(self._value, list) | ||
or _is_raw_type(self._value, tuple) | ||
): | ||
pass | ||
repr_str += ", value: " + repr(self._value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个和最后的else看着没区别了吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个和最后的else看着没区别了吗?
嗯,处理方式是一样的,先保留了判断逻辑,后面要区分处理可以复用下。
No description provided.