tensorflow:: ops:: SparseTensorDenseMatMul

#include <sparse_ops.h>

(ランク2の)疎テンソル「A」に密行列「B」を乗算します。

まとめ

Aのインデックスに対しては妥当性チェックは行われません。ただし、最適な動作のためには、以下の入力形式を推奨します。

adjoint_a == false の場合: A は辞書式昇順でソートする必要があります。不明な場合はSparseReorder を使用してください。 adjoint_a == true の場合: A は次元 1 の昇順 (つまり、「行優先」順ではなく「列優先」順) でソートする必要があります。

議論:

  • スコープ:スコープオブジェクト
  • a_indices SparseTensor 2次元。SparseTensorのindices 、サイズは[nnz, 2]行列。
  • a_values: 1次元。SparseTensor SparseTensor values 、サイズ[nnz]ベクトル。
  • a_shape: 1次元。SparseTensor SparseTensor shape 、サイズ[2]ベクトル。
  • b: 2次元。密行列。

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

  • adjoint_a: 行列乗算でAの随伴行列を使用します。Aが複素数の場合はtranspose(conj(A))、そうでない場合はtranspose(A)となります。
  • adjoint_b: 行列乗算でBの随伴行列を使用します。Bが複素数の場合はtranspose(conj(B))、そうでない場合はtranspose(B)となります。

返品:

  • Output :積テンソル。

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

SparseTensorDenseMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a_indices, :: tensorflow::Input a_values, :: tensorflow::Input a_shape, :: tensorflow::Input b)
SparseTensorDenseMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a_indices, :: tensorflow::Input a_values, :: tensorflow::Input a_shape, :: tensorflow::Input b, const SparseTensorDenseMatMul::Attrs & attrs)

公開属性

operation
product

公的機能

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

パブリック静的関数

AdjointA (bool x)
AdjointB (bool x)

構造

tensorflow:: ops:: SparseTensorDenseMatMul:: Attrs

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

公開属性

手術

Operation operation

製品

::tensorflow::Output product

公的機能

スパーステンソル密行列乗算

 SparseTensorDenseMatMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input a_indices,
  ::tensorflow::Input a_values,
  ::tensorflow::Input a_shape,
  ::tensorflow::Input b
)

スパーステンソル密行列乗算

 SparseTensorDenseMatMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input a_indices,
  ::tensorflow::Input a_values,
  ::tensorflow::Input a_shape,
  ::tensorflow::Input b,
  const SparseTensorDenseMatMul::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

随伴A

Attrs AdjointA(
  bool x
)

随伴B

Attrs AdjointB(
  bool x
)