Skip to content

Conversation

@jacquesqiao
Copy link
Member

@jacquesqiao jacquesqiao commented Jul 11, 2018

project: #12008

@jacquesqiao jacquesqiao force-pushed the fix-optimizer-accumulator branch from a2bbd09 to d99775a Compare July 11, 2018 14:06
@chengduoZH
Copy link
Contributor

fix #12068

# FIXME: Need to fix this once we figure out how to handle dependencies
self._finish_update(loss.block)
self._finish_update(loss.block,
[p[0] for p in parameters_and_grads])
Copy link
Contributor

Choose a reason for hiding this comment

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

_finish_update involves defining operators, so it should be in with param_and_grad[0].block.program.optimized_guard(param_and_grad[0]):.

@jacquesqiao jacquesqiao merged commit e42f9b7 into PaddlePaddle:develop Jul 12, 2018
kuke pushed a commit to kuke/Paddle that referenced this pull request Aug 25, 2018
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