tf.raw_ops.CSRSparseMatrixComponents
Считывает компоненты CSR в пакет index.
tf.raw_ops.CSRSparseMatrixComponents(
csr_sparse_matrix, index, type, name=None
)
Этот оператор предназначен только для отладки/тестирования, и его интерфейс не ожидается стабильным.
| Аргументы | |
|---|---|
csr_sparse_matrix | A Tensor типа variant. Батчевый CSRSparseMatrix. |
index | A Tensor типа int32. Индекс в пакете csr_sparse_matrix . |
type | tf.DType из: tf.float32, tf.float64, tf.complex64, tf.complex128. |
name | Имя операции (необязательно). |
| Возвращаемые значения | |
|---|---|
Кортеж из Tensor объектов (row_ptrs, col_inds, values). | |
row_ptrs | A Tensor типа int32. |
col_inds | A Tensor типа int32. |
values | A Tensor типа type. |
© 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/CSRSparseMatrixComponents