Class L2Normalize
Defined in File l2_normalize.h
Inheritance Relationships
Base Type
public mindspore::ops::BaseOperator
Derived Type
public mindspore::ops::L2NormalizeFusion
(Class L2NormalizeFusion)
Class Documentation
-
class L2Normalize : public mindspore::ops::BaseOperator
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.
-
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.
-
inline explicit L2Normalize(const std::string &name = kNameL2Normalize)