From cb1ccc710b86805ee80b2da163407c6ad36b8f89 Mon Sep 17 00:00:00 2001 From: tangwei12 Date: Sun, 28 Oct 2018 09:00:54 +0800 Subject: [PATCH] fix shape type in uniform_random_op.cu --- paddle/fluid/operators/uniform_random_op.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/uniform_random_op.cu b/paddle/fluid/operators/uniform_random_op.cu index bbb692b0d..2bb0ecc13 100644 --- a/paddle/fluid/operators/uniform_random_op.cu +++ b/paddle/fluid/operators/uniform_random_op.cu @@ -48,7 +48,7 @@ class GPUUniformRandomKernel : public framework::OpKernel { if (out_var->IsType()) { tensor = out_var->GetMutable(); } else if (out_var->IsType()) { - auto shape = context.Attr>("shape"); + auto shape = context.Attr>("shape"); tensor = out_var->GetMutable()->mutable_value(); tensor->Resize(framework::make_ddim(shape)); } else { -- GitLab