tf.raw_ops.SparseDenseCwiseDiv
Компонентное деление SparseTensor на DenseTensor.
tf.raw_ops.SparseDenseCwiseDiv(
sp_indices, sp_values, sp_shape, dense, name=None
)
Ограничение: этот оператор выполняет распространение только со стороны dense тензора на сторону sparse тензора, но не в обратном направлении.
| Аргументы | |
|---|---|
sp_indices | A Tensor типа int64. 2-D. N x R матрица с индексами ненулевых элементов в SparseTensor, возможно, не в каноническом порядке. |
sp_values | A Tensor. Должен быть одного из следующих типов: float32, float64, int32, uint8, int16, int8, complex64, int64, qint8, quint8, qint32, bfloat16, uint16, complex128, half, uint32, uint64. 1-D. N ненулевые значения, соответствующие sp_indices. |
sp_shape | A Tensor типа int64. 1-D. Форма входного SparseTensor. |
dense | A Tensor. Должен иметь тот же тип, что и sp_values. R-D. Dense тензор-операнд. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
A Tensor. Имеет тот же тип, что и sp_values. |
© 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/r2.4/api_docs/python/tf/raw_ops/SparseDenseCwiseDiv