tensorflow::ops::SparseDenseCwiseMul
#include <sparse_ops.h>
Элементное произведение SparseTensor и плотного тензора.
Краткое описание
Позиции в выходном тензоре, соответствующие неявно нулевым элементам в разреженном тензоре, будут равны нулю (т.е. не будут занимать места в памяти), независимо от содержимого плотного тензора (даже если он содержит значения +/-INF и INF*0 == NaN).
Ограничение: данный оператор выполняет вещание плотного тензора к разреженному, но не наоборот.
Аргументы:
- scope: Объект Scope
- sp_indices: 2-мерная.
N x Rматрица с индексами ненулевых значений в SparseTensor, возможно, не в каноническом порядке. - sp_values: 1-мерная.
Nненулевые значения, соответствующиеsp_indices. - sp_shape: 1-мерная. Форма входного SparseTensor.
- dense:
R-мерный. Плотное значение.
Возвращаемое значение:
-
Output: 1-мерная.Nзначения, над которыми выполняется операция.
| Конструкторы и деструкторы | |
|---|---|
SparseDenseCwiseMul(const ::tensorflow::Scope & scope, ::tensorflow::Input sp_indices, ::tensorflow::Input sp_values, ::tensorflow::Input sp_shape, ::tensorflow::Input dense) |
| Открытые атрибуты | |
|---|---|
operation | |
output | |
| Открытые функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
Открытые атрибуты
operation
Operation operation
output
::tensorflow::Output output
Открытые функции
SparseDenseCwiseMul
SparseDenseCwiseMul( const ::tensorflow::Scope & scope, ::tensorflow::Input sp_indices, ::tensorflow::Input sp_values, ::tensorflow::Input sp_shape, ::tensorflow::Input dense )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/sparse-dense-cwise-mul