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

Fix default value not set bug #5483

Merged
merged 66 commits into from
Jul 14, 2021
Merged

Conversation

BBuf
Copy link
Contributor

@BBuf BBuf commented Jul 14, 2021

No description provided.

BBuf added 30 commits May 25, 2021 11:01
@BBuf BBuf requested a review from daquexian July 14, 2021 06:46
@@ -164,6 +164,10 @@ def test_against_pytorch(
def has_full_args_spec(callable):
try:
spec = inspect.getfullargspec(callable)
if spec.defaults == None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

把它们写在 182 行之后吧,has_full_args_spec 应该只做判断

然后 == None 换成 is None

@oneflow-ci-bot oneflow-ci-bot removed their request for review July 14, 2021 08:22
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 14, 2021 08:22
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 14, 2021 11:04
@jackalcooper jackalcooper merged commit b0dd35e into master Jul 14, 2021
@jackalcooper jackalcooper deleted the fix_default_value_not_set_bug branch July 14, 2021 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants