Tensorflow :: ops :: SparseTensorDenseMatMul
#include <sparse_ops.h>
Multiplizieren Sie den SparseTensor (von Rang 2) "A" mit der dichten Matrix "B".
Zusammenfassung
Für die Indizes von A wird keine Gültigkeitsprüfung durchgeführt. Für ein optimales Verhalten wird jedoch das folgende Eingabeformat empfohlen:
if adjoint_a == false: A sollte in lexikographisch aufsteigender Reihenfolge sortiert werden. Verwenden Sie SparseReorder, wenn Sie sich nicht sicher sind. if adjoint_a == true: A sollte in der Reihenfolge zunehmender Dimension 1 sortiert werden (dh Reihenfolge "Spaltenmajor" anstelle der Reihenfolge "Zeilenmajor").
Argumente:
- scope: Ein Scope- Objekt
- a_indices: 2-D. Die
indices
desSparseTensor
, Größe[nnz, 2]
Matrix. - a_Werte: 1-D. Die
values
desSparseTensor
, Größe[nnz]
Vektor. - a_shape: 1-D. Die
shape
desSparseTensor
, Größe[2]
Vektor. - b: 2-D. Eine dichte Matrix.
Optionale Attribute (siehe Attrs
):
- adjoint_a: Verwenden Sie den Adjoint von A in der Matrix multiplizieren. Wenn A komplex ist, ist dies transponiert (konj (A)). Ansonsten ist es transponieren (A).
- adjoint_b: Verwenden Sie den Adjoint von B in der Matrix multiplizieren. Wenn B komplex ist, ist dies transponiert (konj (B)). Ansonsten ist es transponieren (B).
Kehrt zurück:
-
Output
: Der Produkttensor.
Konstruktoren und Destruktoren | |
---|---|
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) |
Öffentliche Attribute | |
---|---|
operation | |
product |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
AdjointA (bool x) | |
AdjointB (bool x) |
Strukturen | |
---|---|
tensorflow :: ops :: SparseTensorDenseMatMul :: Attrs | Optionale Attributsetzer für SparseTensorDenseMatMul . |
Öffentliche Attribute
Operation
Operation operation
Produkt
::tensorflow::Output product
Öffentliche Funktionen
SparseTensorDenseMatMul
SparseTensorDenseMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a_indices, ::tensorflow::Input a_values, ::tensorflow::Input a_shape, ::tensorflow::Input b )
SparseTensorDenseMatMul
SparseTensorDenseMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a_indices, ::tensorflow::Input a_values, ::tensorflow::Input a_shape, ::tensorflow::Input b, const SparseTensorDenseMatMul::Attrs & attrs )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
AdjointA
Attrs AdjointA( bool x )
AdjointB
Attrs AdjointB( bool x )