Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
d8ca66da
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
d8ca66da
编写于
4月 17, 2020
作者:
G
gfwm0502
提交者:
GitHub
4月 17, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Modify documents of executor and randn and fix other errors (#23879)
test=develop
上级
a7563602
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
paddle/fluid/operators/controlflow/compare_op.cc
paddle/fluid/operators/controlflow/compare_op.cc
+1
-1
python/paddle/fluid/executor.py
python/paddle/fluid/executor.py
+1
-1
python/paddle/tensor/random.py
python/paddle/tensor/random.py
+3
-3
未找到文件。
paddle/fluid/operators/controlflow/compare_op.cc
浏览文件 @
d8ca66da
...
...
@@ -88,7 +88,7 @@ class CompareOp : public framework::OperatorWithKernel {
PADDLE_ENFORCE_GE
(
dim_x
.
size
(),
dim_y
.
size
(),
platform
::
errors
::
InvalidArgument
(
"The size of dim_y should not be greater than "
"dim_x's, but received dim_y: %d > dim_x: %d"
,
"dim_x's, but received dim_y: %d > dim_x: %d
.
\n
"
,
dim_y
.
size
(),
dim_x
.
size
()));
context
->
SetOutputDim
(
"Out"
,
context
->
GetInputDim
(
"X"
));
...
...
python/paddle/fluid/executor.py
浏览文件 @
d8ca66da
...
...
@@ -516,7 +516,7 @@ class Executor(object):
# os.environ['CPU_NUM'] = str(2)
# If you don't set place and PaddlePaddle is CPU version
#
os.environ['CPU_NUM'] = str(2)
os.environ['CPU_NUM'] = str(2)
compiled_prog = compiler.CompiledProgram(
train_program).with_data_parallel(
...
...
python/paddle/tensor/random.py
浏览文件 @
d8ca66da
...
...
@@ -31,7 +31,7 @@ from ..fluid.data_feeder import convert_dtype, check_variable_and_dtype, check_t
from
..fluid.layers
import
utils
from
..fluid.layers.tensor
import
fill_constant
__all__
=
[
'randperm'
,
'randint'
]
__all__
=
[
'randperm'
,
'rand
n'
,
'rand
int'
]
def
randint
(
low
,
...
...
@@ -208,7 +208,7 @@ def randn(shape,
shape(list|tuple): Shape of the generated random tensor.
out(Variable, optional): Optional output which can be any created Variable
that meets the requirements to store the result of operation. If the
out is `None`, a new Variable wi
i
l be returned to store the result.
out is `None`, a new Variable wi
l
l be returned to store the result.
Default is None.
dtype(np.dtype|core.VarDesc.VarType|str, optional): Data type of the output
tensor, which can be float32, float64. if dtype is `None` , the data
...
...
@@ -225,7 +225,7 @@ def randn(shape,
Default is None.
Returns:
Random tensor whose data is drawn from a
Gaussian distribution,
Random tensor whose data is drawn from a
standard normal distribution,
dtype: flaot32 or float64 as specified.
Return type:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录