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