W3cubDocs

/TensorFlow C++

tensorflow::ops::Squeeze::Attrs

#include <array_ops.h>

Optional attribute setters for Squeeze.

Summary

Public attributes
axis_ = {}
gtl::ArraySlice< int >
Public functions
Axis(const gtl::ArraySlice< int > & x)
TF_MUST_USE_RESULT Attrs
If specified, only squeezes the dimensions listed.

Public attributes

axis_

gtl::ArraySlice< int > tensorflow::ops::Squeeze::Attrs::axis_ = {}

Public functions

Axis

TF_MUST_USE_RESULT Attrs tensorflow::ops::Squeeze::Attrs::Axis(
  const gtl::ArraySlice< int > & x
)

If specified, only squeezes the dimensions listed.

The dimension index starts at 0. It is an error to squeeze a dimension that is not 1. Must be in the range [-rank(input), rank(input)).

Defaults to []

© 2018 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/squeeze/attrs.html