Class Base
Defined in File base.h
Inheritance Relationships
Derived Types
public mindspore::api::AbstractBase
(Class AbstractBase)public mindspore::api::AnfNode
(Class AnfNode)public mindspore::api::Shape
(Class Shape)public mindspore::api::Value
(Class Value)
Class Documentation
-
class Base
Base is the base class of many api classes, which provides basic interfaces.
Subclassed by mindspore::api::AbstractBase, mindspore::api::AnfNode, mindspore::api::Shape, mindspore::api::Value
Public Functions
-
explicit Base(const std::shared_ptr<mindspore::Base> &impl)
Create an instance from the given implementation object.
- Parameters
impl – [in] The shared_ptr to the implementation object.
-
virtual ~Base() = default
Destructor of Base.
-
inline const std::shared_ptr<mindspore::Base> &impl() const
Get the shared_ptr to the underly implementation object.
- Returns
The shared_ptr to the underly implementation object.
-
std::string ToString() const
Get the string representation of this object.
- Returns
The string representation.
Public Static Functions
-
static uint32_t ClassId()
Get the id of this class.
- Returns
The id of this class.
-
explicit Base(const std::shared_ptr<mindspore::Base> &impl)