Class Named

Inheritance Relationships

Base Type

  • public mindspore::Value

Derived Types

Class Documentation

class Named : public mindspore::Value

\beief Named defines an abstract class that records the name and hash_id.

Subclassed by mindspore::Ellipsis, mindspore::None, mindspore::Null, mindspore::Primitive, mindspore::RefKey

Public Functions

inline explicit Named(const std::string &name)

\beief The constructor for Named.

Parameters

name[in] The name of object.

inline Named(const Named &other)

The constructor for Named, create a Named for another Named.

Parameters

other[in] The input tensor.

~Named() override = default

The destructor of None.

inline const std::string &name() const

Getting name of object.

Returns

The name of object.

inline std::size_t Hash() const

Get hash id for named.

Returns

The restored hash id of Named.

inline virtual std::size_t hash() const override

Get the hash value of this object.

Returns

The hash value.

inline virtual std::string ToString() const override

Get name for Named.

Returns

The restored name of Named.