W3cubDocs

/TensorFlow C++

tensorflow::ops::Placeholder::Attrs

#include <array_ops.h>

Optional attribute setters for Placeholder.

Summary

Public attributes
shape_ = {}
TensorShape
Public functions
Shape(TensorShape x)
(Optional) The shape of the tensor.

Public attributes

shape_

TensorShape tensorflow::ops::Placeholder::Attrs::shape_ = {}

Public functions

Shape

Attrs tensorflow::ops::Placeholder::Attrs::Shape(
  TensorShape x
)

(Optional) The shape of the tensor.

If the shape has 0 dimensions, the shape is unconstrained.

Defaults to []

© 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/struct/tensorflow/ops/placeholder/attrs.html