tensorflow::Input

#include <ops.h>

Represents a tensor value that can be used as an operand to an Operation.

Summary

Constructors and Destructors

Input(const Output & o)
All of Input's constructors are implicit.
Input(const T & v)
Input(const Initializer & init)
Input(const Tensor & t)
Input(const std::initializer_list< Initializer > & init)
Input(const std::string & name, int32_t i, DataType dt)
Constructor specifying a node name, index and datatype.

Public functions

data_type() const
DataType
index() const
int32
node() const
Node *
node_name() const
std::string
status() const
Status
tensor() const
const Tensor &

Structs

tensorflow::Input::Initializer

Initializer enables constructing an Input object from various kinds of C++ constants such as simple primitive constants and nested initializer lists representing a multi-dimensional array.

Public functions

Input

Input(
constOutput  & o
)

All of Input's constructors are implicit.

Input can be implicitly constructed from the following objects :

  • Output: This is so that the output of an Operation can be directly used as the input to a op wrapper, which takes Inputs.
  • A scalar, or a multi-dimensional tensor specified as a recursive initializer list. This enables directly passing constants as inputs to op wrappers.
  • A Tensor object.

Input

Input(
constT & v
)

Input

Input(
constInitializer  & init
)

Input

Input(
constTensor  & t
)

Input

Input(
conststd::initializer_list<Initializer  > & init
)

Input

Input(
conststd::string & name,
int32_ti,
DataTypedt
)

Constructor specifying a node name, index and datatype.

This should only be used for specifying a backward edge, needed by control flow.

data_type

DataTypedata_type()const

index

int32index()const

node

Node*node()const

node_name

std::stringnode_name()const

status

Statusstatus()const

tensor

constTensor  & tensor()const

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.

Last updated 2022年02月08日 UTC.