ClikaRT::ops::softmin
function
softmin()
Tensor softmin(
Tensor input,
int64_t dim = -1,
DataType dtype = DataType::Undefined
)
Softmax of the negated input: weights small values highest.
Parameters
input: the input tensor.dim: the reduction dimension. Negative counts from the end. Default-1.dtype: output dtype;DataType::Undefined(default) keepsinput's.
Throws
ClikaRT::Error: whendimis out of range, or when the dtype pair is not served (code_name()carries the reason).
Returns: same shape as input; dtype = dtype when set, else input's.
auto w = ClikaRT::ops::softmin(distances, -1);
Declared in ClikaRT/compute/ops.h, line 1069