Class SmoothL1Loss

Inheritance Relationships

Base Type

Class Documentation

class SmoothL1Loss : public mindspore::ops::PrimitiveC

Computes smooth L1 loss, a robust L1 loss. Refer to Python API mindspore.ops.SmoothL1Loss for more details.

Public Functions

inline SmoothL1Loss()

Constructor.

~SmoothL1Loss() = default

Destructor.

void Init(const float beta)

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

void set_beta(const float beta)

Set beta.

float get_beta() const

Get beta.

Returns

beta.