tf.raw_ops.SparseTensorDenseAdd
Суммирует SparseTensor и плотный Tensor, создавая плотный Tensor.
tf.raw_ops.SparseTensorDenseAdd(
a_indices, a_values, a_shape, b, name=None
)
Эта операция не требует, чтобы a_indices были отсортированы в стандартном лексикографическом порядке.
| Аргументы | |
|---|---|
a_indices | Tensor. Должен иметь один из следующих типов: int32, int64. 2-D. indices SparseTensor, форма [nnz, ndims]. |
a_values | Tensor. Должен иметь один из следующих типов: float32, float64, int32, uint8, int16, int8, complex64, int64, qint8, quint8, qint32, bfloat16, qint16, quint16, uint16, complex128, half, uint32, uint64. 1-D. values SparseTensor, форма [nnz]. |
a_shape | Tensor. Должен иметь тот же тип, что и a_indices. 1-D. shape SparseTensor, форма [ndims]. |
b | Tensor. Должен иметь тот же тип, что и a_values. ndims-D-тензор. Форма a_shape. |
name | Имя операции (необязательно). |
| Возвращает | |
|---|---|
Tensor. Имеет тот же тип, что и a_values. |
© 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/python/tf/raw_ops/SparseTensorDenseAdd