Class COOTensor
Defined in File tensor.h
Inheritance Relationships
Base Type
public mindspore::tensor::MetaSparseTensor
Class Documentation
-
class COOTensor : public mindspore::tensor::MetaSparseTensor
Public Functions
-
inline COOTensor(const TensorPtr indices, const TensorPtr values, const ShapeVector &shape)
Create COOTensor with given data type from another tensor.
- Parameters
indices – [in] [Tensor] The indices.
values – [in] [Tensor] The values.
shape – [in] The shape represented by ShapeVector of the COOTensor.
-
~COOTensor() override = default
Destructor of COOTensor.
-
inline TensorPtr GetIndices()
Gets COOTensor’s indices.
- Returns
[TensorPtr] The indices.
-
inline TensorPtr GetValues()
Gets COOTensor’s values.
- Returns
[TensorPtr] The values.
-
std::string ToString() const override
Get display information of this Tensor.
- Returns
The display information of this Tensor.
-
inline COOTensor(const TensorPtr indices, const TensorPtr values, const ShapeVector &shape)