From 09d2aa49fcd7acb4b99d412d87ea5a47cec7ec3c Mon Sep 17 00:00:00 2001 From: iducn <45056973+iducn@users.noreply.github.com> Date: Tue, 21 Apr 2020 17:45:11 +0800 Subject: [PATCH] modify chinese sample code diff (#2010) --- doc/fluid/api_cn/profiler_cn/cuda_profiler_cn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/fluid/api_cn/profiler_cn/cuda_profiler_cn.rst b/doc/fluid/api_cn/profiler_cn/cuda_profiler_cn.rst index d10f39cea..2350417db 100644 --- a/doc/fluid/api_cn/profiler_cn/cuda_profiler_cn.rst +++ b/doc/fluid/api_cn/profiler_cn/cuda_profiler_cn.rst @@ -30,7 +30,7 @@ CUDA性能分析器。该分析器通过调用CUDA运行时编程接口,对CUD epoc = 8 dshape = [4, 3, 28, 28] - data = fluid.layers.data(name='data', shape=[3, 28, 28], dtype='float32') + data = fluid.data(name='data', shape=[None, 3, 28, 28], dtype='float32') conv = fluid.layers.conv2d(data, 20, 3, stride=[1, 1], padding=[1, 1]) place = fluid.CUDAPlace(0) -- GitLab