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, const std::string reduction = "none")

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.

返回

beta.

void set_reduction(const std::string reduction)

Set reduction.

std::string get_reduction() const

Get reduction.

返回

reduction.