Skip to content

Fix some Bugs of Undefined Variables#33691

Merged
lelelelelez merged 1 commit intoPaddlePaddle:developfrom
Jiangxinz:fix-undef-var3
Jun 24, 2021
Merged

Fix some Bugs of Undefined Variables#33691
lelelelelez merged 1 commit intoPaddlePaddle:developfrom
Jiangxinz:fix-undef-var3

Conversation

@Jiangxinz
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Describe

  1. In python/paddle/fluid/tests/unittests/asp/test_asp_pruning_1d.py:
    Line 36: Undefined variable 'unittest'
    import unittest
  2. In python/paddle/distributed/fleet/launch_utils.py:
    Line 702: Undefined variable 'arg'
    use 'args' instead of 'arg'
    Line 352: Undefined variable 'distutils'
    from distutils.util import strtobool
    Line 688: Undefined variable 'arg'
    use 'args' instead of 'arg'
  3. In python/paddle/fluid/tests/unittests/asp/test_asp_pruning_2d_greedy.py:
    Line 36: Undefined variable 'unittest'
    import unittest
  4. In python/paddle/fluid/tests/unittests/xpu/test_batch_norm_op_xpu.py:
    Line 144: Undefined variable 'data_layout'
    use 'self.data_layout' instead of 'data_layout'
  5. In tools/CrossStackProfiler/NetFileReader.py:
    Line 83: Undefined variable 'multiprocessing'
    import multiprocessing
  6. In python/paddle/fluid/tests/unittests/parallel_dygraph_transformer.py:
    Line 915: Undefined variable 'NoamDecay'
    from paddle.optimizer.lr import NoamDecay

@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 49638f2 into PaddlePaddle:develop Jun 24, 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