ggml_trunc method
Truncates the fractional part of each element in the tensor (towards zero). For example: trunc(3.7) = 3.0, trunc(-2.9) = -2.0 Similar to std::trunc in C/C++.
Implementation
ffi.Pointer<ggml_tensor> ggml_trunc(
ffi.Pointer<ggml_context> ctx,
ffi.Pointer<ggml_tensor> a,
) {
return _ggml_trunc(
ctx,
a,
);
}