From 964299291a77e10562218b33215807f9de5bb58e Mon Sep 17 00:00:00 2001
From: Travis CI
paddle.v2.fluid.layers.
ones
(shape, dtype)paddle.v2.fluid.layers.
ones
(shape, dtype, force_cpu=False)
ones
This function creates a tensor of specified shape and dtype, and initializes this with 1.
@@ -4753,7 +4753,7 @@ initializes it with a constant specifed by value.paddle.v2.fluid.layers.
zeros
(shape, dtype)paddle.v2.fluid.layers.
zeros
(shape, dtype, force_cpu=False)
zeros
This function creates a tensor of specified shape and dtype, and initializes this with 0.
diff --git a/develop/doc_cn/api/v2/fluid/layers.html b/develop/doc_cn/api/v2/fluid/layers.html index 46fde35a24a..24c89d345d8 100644 --- a/develop/doc_cn/api/v2/fluid/layers.html +++ b/develop/doc_cn/api/v2/fluid/layers.html @@ -4738,7 +4738,7 @@ initializes it with a constant specifed by value.paddle.v2.fluid.layers.
ones
(shape, dtype)paddle.v2.fluid.layers.
ones
(shape, dtype, force_cpu=False)
ones
This function creates a tensor of specified shape and dtype, and initializes this with 1.
@@ -4772,7 +4772,7 @@ initializes it with a constant specifed by value.paddle.v2.fluid.layers.
zeros
(shape, dtype)paddle.v2.fluid.layers.
zeros
(shape, dtype, force_cpu=False)
zeros
This function creates a tensor of specified shape and dtype, and initializes this with 0.
-- GitLab