def BF16.round
import bendtorch@1.3.0.0/dtype.bend as Dtypeimport Base
58# x rounded to the nearest BF16 value, as an F32 (x.to(torch.bfloat16).to(torch.float32))
59def BF16.round(+x: F32) -> F32:
60 BF16.to_f32(BF16.of_f32(x))
import bendtorch@1.3.0.0/dtype.bend as Dtypeimport Base
58# x rounded to the nearest BF16 value, as an F32 (x.to(torch.bfloat16).to(torch.float32))
59def BF16.round(+x: F32) -> F32:
60 BF16.to_f32(BF16.of_f32(x))