Class L2Normalize

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class L2Normalize : public mindspore::ops::PrimitiveC

L2 Normalization Operator. Refer to Python API mindspore.ops.L2Normalize for more details.

Subclassed by mindspore::ops::L2NormalizeFusion

Public Functions

inline explicit L2Normalize(const std::string &name = kNameL2Normalize)

Constructor.

~L2Normalize() = default

Destructor.

void Init(const std::vector<int64_t> &axis, const float epsilon = 1e-4)

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

void set_axis(const std::vector<int64_t> &axis)

Set axis.

void set_epsilon(const float epsilon)

Set epsilon.

std::vector<int64_t> get_axis() const

Get axis.

Returns

axis.

float get_epsilon() const

Get epsilon.

Returns

epsilon.