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 some Bugs of Undefined Variable #33780

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

Jiangxinz
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Describe

  1. In python/paddle/distributed/fleet/meta_optimizers/ascend/ascend_parser.py
    Error: Undefined variable 'dtype'
    Fix:use 'index' instead of 'dtype'

  2. In python/paddle/fluid/tests/unittests/asp/test_asp_pruning_2d_best.py
    Error: Undefined variable 'unittest'
    Fix: import unittest

  3. In python/paddle/fluid/tests/unittests/npu/test_collective_base_npu.py
    Error: Undefined variable 'string_types'
    Fix: from six import string_types

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@lelelelelez lelelelelez left a comment

Choose a reason for hiding this comment

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

LGTM

@lelelelelez lelelelelez merged commit 83284c8 into PaddlePaddle:develop Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants