Skip to content

Commit

Permalink
fix-sgd
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesqiao committed Aug 18, 2017
1 parent e28e007 commit 8b3d33a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/operators/sgd_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SGDOpKernel : public framework::OpKernel {
void Compute(const framework::ExecutionContext& ctx) const override {
auto param = ctx.Input<Tensor>("param");
auto grad = ctx.Input<Tensor>("grad");
auto param_out = ctx.Output<Tensor>(0);
auto param_out = ctx.Output<Tensor>("param_out");
float lr = ctx.op_.GetAttr<float>("learning_rate");

param_out->mutable_data<T>(ctx.GetPlace());
Expand Down

0 comments on commit 8b3d33a

Please sign in to comment.