Function ouster::sdk::mapping::loss_function_from_string

Function Documentation

inline LossFunction ouster::sdk::mapping::loss_function_from_string(const std::string &name)

Converts a string to the corresponding LossFunction enum value.

This function takes a string representation of a loss function name and returns the matching LossFunction enum.

Parameters:

name[in] – The string name of the loss function.

Throws:

std::invalid_argument – If the provided name does not match any known LossFunction.

Returns:

The corresponding LossFunction enum value.