tensorflow::ops::PlaceholderV2

tensorflow::ops::PlaceholderV2

#include <array_ops.h>

A placeholder op for a value that will be fed into the computation.

Summary

DEPRECATED at GraphDef version 23: Placeholder now behaves the same as PlaceholderV2..

N.B. This operation will fail with an error if it is executed. It is intended as a way to represent a value that will always be fed, and to provide attrs that enable the fed value to be checked at runtime.

Arguments:

  • scope: A Scope object
  • dtype: The type of elements in the tensor.
  • shape: The shape of the tensor. The shape can be any partially-specified shape. To be unconstrained, pass in a shape with unknown rank.

Returns:

  • Output: A placeholder tensor that must be replaced using the feed mechanism.
Constructors and Destructors
PlaceholderV2(const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape)
Public attributes
output
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Public attributes

output

::tensorflow::Output output

Public functions

PlaceholderV2

 PlaceholderV2(
  const ::tensorflow::Scope & scope,
  DataType dtype,
  PartialTensorShape shape
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/placeholder-v2.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部