std1.0.0-beta-7 SafeC docs

std :: ml::tensor_half

Function std::half_round

#include <std/ml/tensor_half.h> source ยท definition

float half_round(float v, int dtype)

Round 'v' to the nearest value representable in 'dtype' (returned as float32). Any dtype other than TENSOR_FP16/TENSOR_BF16 returns 'v'.