Class LpNormalization

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Class Documentation

class LpNormalization : public mindspore::ops::BaseOperator

LpNormalization defined LpNormalization operator prototype of lite.

Public Functions

inline LpNormalization()

Constructor.

void Init(const int64_t axis, const int64_t p)

Method to init the op’s attributes.

Parameters
  • axis[in] Define the dim to do normalization.

  • p[in] Define the norm series.

void set_axis(const int64_t axis)

Method to set axis attribute.

Parameters

axis[in] Define the dim to do normalization.

void set_p(const int64_t p)

Method to set p attribute.

Parameters

p[in] Define the norm series.

int64_t get_axis() const

Method to get axis attribute.

Returns

the dim to do normalization.

int64_t get_p() const

Method to get p attribute.

Returns

the norm series.