tensorflow::ops::Empty
#include <array_ops.h>
Creates a tensor with the given shape.
Summary
This operation creates a tensor of shape
and dtype
.
Arguments:
- scope: A Scope object
- shape: 1-D. Represents the shape of the output tensor.
Optional attributes (see Attrs
):
- init: If True, initialize the returned tensor with the default value of dtype. Otherwise, the implementation is free not to initializethe tensor's content.
Returns:
Constructors and Destructors | |
---|---|
Empty(const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype) | |
Empty(const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype, const Empty::Attrs & attrs) |
Public attributes | |
---|---|
operation | |
output |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
Public static functions | |
---|---|
Init(bool x) |
Structs | |
---|---|
tensorflow::ops::Empty::Attrs | Optional attribute setters for Empty. |
Public attributes
operation
Operation operation
output
::tensorflow::Output output
Public functions
Empty
Empty( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype )
Empty
Empty( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype, const Empty::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
Init
Attrs Init( bool x )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/empty