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.

Returns

A pointer to the cloned abstract.

TypePtr type() const

Get the abstract type.

Returns

A pointer to the Type.

ValuePtr value() const

Get the abstract value.

Returns

A pointer to the Value.

ShapePtr shape() const

Get the shape of the abstract.

Returns

A pointer to the shape.

void set_type(const TypePtr &type)

Set the type for this abstract.

Parameters

type[in] The type to be set.

void set_value(const ValuePtr &value)

Set the value for this abstract.

Parameters

value[in] The value to be set.

void set_shape(const ShapePtr &shape)

Set the shape for this abstract.

Parameters

shape[in] The shape to be set.