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

use optimizer Momentum with learning_rate=fluid.layers.piecewise_decay #11144

Closed
seiriosPlus opened this issue Jun 4, 2018 · 2 comments
Closed
Labels

Comments

@seiriosPlus
Copy link
Collaborator

use optimizer Momentum with learning_rate=fluid.layers.piecewise_decay get this exception:

Traceback (most recent call last):
  File "/models/image_classification/se_resnext_high_api.py", line 278, in <module>
    train()
  File "/models/image_classification/se_resnext_high_api.py", line 227, in train
    param_path="/workspace/models")
  File "/usr/local/lib/python2.7/dist-packages/paddle/fluid/trainer.py", line 126, in __init__
    optimize_ops, params_grads = optimizer.minimize(loss)
  File "/usr/local/lib/python2.7/dist-packages/paddle/fluid/optimizer.py", line 253, in minimize
    startup_program)
  File "/usr/local/lib/python2.7/dist-packages/paddle/fluid/optimizer.py", line 212, in create_optimization_pass
    self._create_global_learning_rate()
  File "/usr/local/lib/python2.7/dist-packages/paddle/fluid/optimizer.py", line 73, in _create_global_learning_rate
    "learning rate variable is created outside optimizer,"
TypeError: learning rate variable is created outside optimizer, cannot create new learning rate variable for the new program

PaddlePaddle: latest with new API

@seiriosPlus
Copy link
Collaborator Author

related #11157

@seiriosPlus seiriosPlus added the Bug label Jun 4, 2018
@sidgoyal78
Copy link
Contributor

Fixed with #11168 and #11172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants