tf.raw_ops.CSRSparseMatrixComponents
Считывает компоненты CSR для пакета index.
tf.raw_ops.CSRSparseMatrixComponents(
csr_sparse_matrix, index, type, name=None
)
Эта операция предназначена только для отладки и тестирования, поэтому её интерфейс может измениться.
| Аргументы | |
|---|---|
csr_sparse_matrix | Tensor типа variant. Пакетная разреженная матрица CSR. |
index | 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 | Tensor типа int32. |
col_inds | Tensor типа int32. |
values | Tensor типа type. |
© 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/CSRSparseMatrixComponents