Class AbstractBase

Inheritance Relationships

Base Type

Derived Types

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.

TypePtr type() const

Get the abstract type.

返回

A pointer to the Type.

ValuePtr value() const

Get the abstract value.

返回

A pointer to the Value.

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.