テンソルフロー::作戦:: SparseReduceMax

#include <sparse_ops.h>

SparseTensor の次元全体の要素の最大値を計算します。

まとめ

この Op は SparseTensor を受け取り、 tf.reduce_max()に相当するスパースです。特に、この Op はスパース テンソルの代わりにデンスTensorも返します。

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

reduction_axesにエントリがない場合、すべての次元が削減され、単一の要素を持つテンソルが返されます。さらに、軸は負の値になる場合があり、これは Python のインデックス付けルールに従って解釈されます。

引数:

  • スコープ:スコープオブジェクト
  • input_index: 2 次元。 SparseTensor 内の空でない値のインデックスを含むN x R行列 (標準的な順序付けではない可能性があります)。
  • input_values: 1-D。 input_indicesに対応するNの空でない値。
  • input_shape: 1-D。入力 SparseTensor の形状。
  • 削減軸: 1-D。長さ - 縮小軸を含む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 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const 

パブリック静的関数

KeepDims

Attrs KeepDims(
  bool x
)