Class AbstractBase
- Defined in File abstract.h 
Inheritance Relationships
Base Type
- public mindspore::api::Base(Class Base)
Derived Types
- public mindspore::api::AbstractScalar(Class AbstractScalar)
- public mindspore::api::AbstractSequence(Class AbstractSequence)
- public mindspore::api::AbstractTensor(Class AbstractTensor)
Class Documentation
- 
class AbstractBase : public mindspore::api::Base
- AbstractBase defines base interfaces for abstract of an anf node. - Subclassed by mindspore::api::AbstractScalar, mindspore::api::AbstractSequence, mindspore::api::AbstractTensor - Public Functions - 
AbstractBasePtr Clone() const
- Clone an abstract from this abstract. - 返回
- A pointer to the cloned abstract. 
 
 - 
ShapePtr shape() const
- Get the shape of the abstract. - 返回
- A pointer to the shape. 
 
 - 
void set_type(const TypePtr &type)
- Set the type for this abstract. - 参数
- type – [in] The type to be set. 
 
 - 
void set_value(const ValuePtr &value)
- Set the value for this abstract. - 参数
- value – [in] The value to be set. 
 
 - 
void set_shape(const ShapePtr &shape)
- Set the shape for this abstract. - 参数
- shape – [in] The shape to be set. 
 
 
- 
AbstractBasePtr Clone() const