Class EmbeddingLookup

Inheritance Relationships

Base Type

Class Documentation

class EmbeddingLookup : public mindspore::ops::PrimitiveC

Returns a slice of input tensor based on the specified indices. Refer to Python API mindspore.ops.EmbeddingLookup for more details.

Public Functions

inline EmbeddingLookup()

Constructor.

~EmbeddingLookup() = default

Destructor.

void Init(const bool setattr_flag = true)

Init. Refer to the parameters of Python API mindspore.ops.EmbeddingLookup for the inputs.

void set_setattr_flag(const bool setattr_flag)

Set setattr_flag.

bool get_setattr_flag() const

Get setattr_flag.

Returns

setattr_flag.