Class SmoothL1Loss

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Class Documentation

class SmoothL1Loss : public mindspore::ops::BaseOperator

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

Public Functions

inline SmoothL1Loss()

Constructor.

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.