tf.placeholder_with_default 函数
placeholder_with_default(
    input,
    shape,
    name=None
)

请参阅指南:输入和读取器>占位符

当输出未被送到时通过的 input 的占位符 op .

参数:

  • input:张量.output 未输入时生成的默认值.
  • shape:一个 tf.TensorShape 或者 ints 列表.张量的形状(可能部分).
  • name:操作的名称(可选).

返回:

该函数将返回一个张量.与 input 具有相同的类型.一个占位符张量,默认为 input 的占位符张量 (如果未送入).

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2021-07-12
  • 2021-09-09
猜你喜欢
  • 2021-11-20
  • 2022-12-23
  • 2021-07-14
  • 2021-08-29
  • 2022-12-23
  • 2020-06-28
相关资源
相似解决方案