tensorflow:: ops:: SparseReduceMax

#include <sparse_ops.h>

SparseTensorの各次元における要素の最大値を計算します。

まとめ

この操作は SparseTensor を受け取り、 tf.reduce_max()のスパース版です。特に、この操作はスパースな Tensor ではなく、密なTensorを返します。

reduction_axesされた次元に沿ってsp_input削減します。keep_dims keep_dims true でない限り、 reduction_axesの各エントリごとにテンソルのランクが 1 削減されます。keep_dims keep_dims true の場合、削減された次元は長さ 1 で保持されます。

reduction_axesにエントリがない場合、すべての次元が削減され、要素が1つだけのテンソルが返されます。また、軸は負の値になることもあり、その場合はPythonのインデックス規則に従って解釈されます。

議論:

  • スコープ:スコープオブジェクト
  • input_indices: 2次元。SparseTensor内の空でない値のインデックスを含むN x R行列。正規順序ではない可能性があります。
  • input_indices : 1次元。input_indicesに対応するN個の空でない値。
  • input_shape: 1次元。入力SparseTensorの形状。
  • reduction_axes: 1次元。縮小軸を含む長さKのベクトル。

オプション属性( Attrs参照):

  • keep_dims: trueの場合、長さ1の縮小された次元を保持します。

返品:

コンストラクターとデストラクタ

SparseReduceMax (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes)
SparseReduceMax (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes, const SparseReduceMax::Attrs & attrs)

公開属性

operation
output

公的機能

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

パブリック静的関数

KeepDims (bool x)

構造

tensorflow:: ops:: SparseReduceMax:: Attrs

SparseReduceMaxのオプション属性セッター。

公開属性

手術

Operation operation

出力

::tensorflow::Output output

公的機能

SparseReduceMax

 SparseReduceMax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input_indices,
  ::tensorflow::Input input_values,
  ::tensorflow::Input input_shape,
  ::tensorflow::Input reduction_axes
)

SparseReduceMax

 SparseReduceMax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input_indices,
  ::tensorflow::Input input_values,
  ::tensorflow::Input input_shape,
  ::tensorflow::Input reduction_axes,
  const SparseReduceMax::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

キープディムズ

Attrs KeepDims(
  bool x
)