ggml : support GGML_TYPE_F32 ".from_float" trait

This commit is contained in:
Georgi Gerganov
2025-06-22 18:44:42 +03:00
parent 630c84a2bd
commit e89709721b
2 changed files with 6 additions and 0 deletions

View File

@@ -133,6 +133,7 @@ extern "C" {
GGML_BACKEND_API ggml_backend_reg_t ggml_backend_cpu_reg(void);
GGML_BACKEND_API void ggml_cpu_fp32_to_fp32(const float *, float *, int64_t);
GGML_BACKEND_API void ggml_cpu_fp32_to_fp16(const float *, ggml_fp16_t *, int64_t);
GGML_BACKEND_API void ggml_cpu_fp16_to_fp32(const ggml_fp16_t *, float *, int64_t);
GGML_BACKEND_API void ggml_cpu_fp32_to_bf16(const float *, ggml_bf16_t *, int64_t);