简体   繁体   English

张量流的tf.name_scope()中的deafult_name参数是什么?

[英]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 is None . 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 the name argument is None default_namename参数为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 namedefault_name至少一个不得为None,否则将引发以下错误

ValueError: At least one of name (None) and default_name (None) must be provided.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Tensorflow:tf.name_scope 没有“with” - Tensorflow: tf.name_scope without 'with' 了解 tf.name_scope - Understanding tf.name_scope TensorFlow 2.0:如何使用tf.keras对图表进行分组? tf.name_scope / tf.variable_scope不再使用了? - TensorFlow 2.0: how to group graph using tf.keras? tf.name_scope/tf.variable_scope not used anymore? TensorFlow为什么我们已经拥有函数tf.variable_scope时仍然使用tf.name_scope - TensorFlow why we still use tf.name_scope when we already have the function tf.variable_scope 如何将 tf.layers 变量放入 tf.name_scope/tf.variable_scope? - How to put tf.layers variables in tf.name_scope/tf.variable_scope? 在TensorFlow中,变量名称中“:0”的含义是什么? - In TensorFlow,what's the meaning of “:0” in a Variable's name? 张量流估计器中作用域名称的ValueError - ValueError at scope name in tensorflow estimator 为什么tf.variable_scope具有default_name参数? - Why does tf.variable_scope has a default_name argument? 传递给行动的论据的名称是什么? (argparse) - What's the name of argument to pass to action? (argparse) 我找不到文档的TensorFlow的tf.data.filter()的第二个参数是什么? - What is the second argument of TensorFlow's tf.data.filter() that I find no documentation of?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM