Class AbstractType

Inheritance Relationships

Base Type

Class Documentation

class AbstractType : public mindspore::abstract::AbstractBase

Class AbstractType describes the abstract value from a Typeof node.

Public Functions

inline explicit AbstractType(const TypePtr &type)

Constructor of AbstractType.

Parameters

type[in] The type of an anf node.

~AbstractType() override = default

Destructor of AbstractType.

inline virtual TypePtr BuildType() const override

Build the type of the abstract.

Note

Use this function to get the actual type, while track type is not enough accurate.

Returns

A pointer to the Type.

virtual AbstractBasePtr Clone() const override

Clone an abstract from the abstract.

Returns

A pointer to the cloned abstract.

inline virtual AbstractBasePtr Broaden() const override

Broaden the abstract. It will upgrade the abstract to a higher level.

Returns

A pointer to the broadened abstract.