tf.raw_ops.CSRSparseMatrixToSparseTensor
Преобразование (возможно, пакетного) CSRSparesMatrix в SparseTensor.
tf.raw_ops.CSRSparseMatrixToSparseTensor(
sparse_matrix, type, name=None
)
| Аргументы | |
|---|---|
sparse_matrix | A Tensor типа variant. A (возможно, пакетный) 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. |
© 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.3/api_docs/python/tf/raw_ops/CSRSparseMatrixToSparseTensor