Class AbstractTensor
Defined in File abstract.h
Inheritance Relationships
Base Type
public mindspore::api::AbstractBase
(Class AbstractBase)
Class Documentation
-
class AbstractTensor : public mindspore::api::AbstractBase
AbstractTensor describes a tensor’s type, shape and value.
Public Functions
-
AbstractTensor(TypeId type, const ShapeVector &shape)
Create AbstractTensor from the given type and shape.
- Parameters
type – [in] The data type id of the tensor.
shape – [in] The shape of the tensor.
-
AbstractBasePtr element() const
Get the element abstract.
- Returns
A pointer to the element abstract.
-
AbstractTensor(TypeId type, const ShapeVector &shape)