#include <state_ops.h>
Holds state in the form of a tensor that persists across steps.
Outputs a ref to the tensor state so it may be read or modified. TODO(zhifengc/mrry): Adds a pointer to a more detail document about sharing states in tensorflow.
Arguments:
Optional attributes (see Attrs
):
Returns:
Output
: A reference to the variable tensor. Constructors and Destructors | |
---|---|
Variable(const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype) | |
Variable(const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::Attrs & attrs) |
Public attributes | |
---|---|
ref |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
Public static functions | |
---|---|
Container(StringPiece x) | |
SharedName(StringPiece x) |
Structs | |
---|---|
tensorflow::ops::Variable::Attrs | Optional attribute setters for Variable. |
::tensorflow::Output ref
Variable( const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype )
Variable( const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs Container( StringPiece x )
Attrs SharedName( StringPiece x )
© 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/variable.html