diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2023-12-21 23:20:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-21 23:20:49 +0200 |
commit | afefa319f1f59b002dfa0d1ef407a2c74bd9770b (patch) | |
tree | a6923e0a6214293d88957cd11e25943f2c0fb80a /examples/export-lora/export-lora.cpp | |
parent | 769a7bc85eaa44e3d7eadf39abfeff7bb0b9cc2f (diff) |
ggml : change ggml_scale to take a float instead of tensor (#4573)
* ggml : change ggml_scale to take a float instead of tensor
* ggml : fix CPU implementation
* tests : fix test-grad0
ggml-ci
Diffstat (limited to 'examples/export-lora/export-lora.cpp')
-rw-r--r-- | examples/export-lora/export-lora.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/export-lora/export-lora.cpp b/examples/export-lora/export-lora.cpp index c8754ce7..58fbe204 100644 --- a/examples/export-lora/export-lora.cpp +++ b/examples/export-lora/export-lora.cpp @@ -309,7 +309,7 @@ static struct ggml_cgraph * build_graph_lora( ) { struct ggml_tensor * ab = ggml_mul_mat(ctx, lora_a, lora_b); if (scaling != 1.0f) { - ab = ggml_scale(ctx, ab, ggml_new_f32(ctx, scaling)); + ab = ggml_scale(ctx, ab, scaling); } struct ggml_tensor * res = ggml_add_inplace(ctx, tensor, ab); |