[英]What is deafult_name argument in tensorflow's tf.name_scope()?
Title is all there is 标题就是全部
The documentation says : 该文件说:
Args:
ARGS:
name: The name argument that is passed to the op function.
name:传递给op函数的name参数。
default_name: The default name to use if the
name
argument isNone
.default_name:如果
name
参数为None
,则使用的默认名称。values: The list of
Tensor
arguments that are passed to the op function.values:传递给op函数的
Tensor
参数列表。
Which is not making it very clear to me as to what is default_name argument's purpose 对于default_name参数的用途,我不太清楚
Well, its been said quite properly 好吧,它说得很对
default_name
: The default name to use if thename
argument is Nonedefault_name
:name
参数为None时要使用的默认名称
If the value of name
is none, then the default_name
value is used as name. 如果
name
值为none,则将default_name
值用作name。
Atleast one among name
and default_name
must not be None, or it will throw the following error name
和default_name
至少一个不得为None,否则将引发以下错误
ValueError: At least one of name (None) and default_name (None) must be provided.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.