tensorflow::ops::SparseTensorDenseMatMul
#include <sparse_ops.h>
Умножает разреженный тензор (ранга 2) «A» на плотную матрицу «B».
Краткое описание
Проверка корректности индексов A не выполняется. Однако для оптимальной работы рекомендуется следующий формат входных данных:
если adjoint_a == false: A должен быть отсортирован в лексикографическом порядке по возрастанию. Используйте SparseReorder, если не уверены. если adjoint_a == true: A должен быть отсортирован по возрастанию измерения 1 (то есть в порядке «по столбцам», а не «по строкам»).
Аргументы:
- scope: объект Scope
- a_indices: двумерный.
indicesSparseTensor, размер[nnz, 2]. Матрица. - a_values: одномерный.
valuesSparseTensor, размер[nnz]. Вектор. - a_shape: одномерный.
shapeSparseTensor, размер[2]. Вектор. - b: двумерная плотная матрица.
Необязательные атрибуты (см. 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 operation
product
::tensorflow::Output product
Публичные функции
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 )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Публичные статические функции
AdjointA
Attrs AdjointA( bool x )
AdjointB
Attrs AdjointB( bool x )
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/sparse-tensor-dense-mat-mul