tf.raw_ops.CSRSparseMatrixToSparseTensor
Преобразует (возможно, объединённую) CSRSparseMatrix в SparseTensor.
tf.raw_ops.CSRSparseMatrixToSparseTensor(
sparse_matrix, type, name=None
)
| Аргументы | |
|---|---|
sparse_matrix | A Tensor типа variant. (Возможно, объединённая) CSRSparseMatrix. |
type | tf.DType из: tf.float32, tf.float64, tf.complex64, tf.complex128. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
Кортеж объектов Tensor (индексы, значения, dense_shape). | |
indices | A Tensor типа int64. |
values | A Tensor типа type. |
dense_shape | A Tensor типа int64. |
© 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/CSRSparseMatrixToSparseTensor