mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-10-07 15:01:16 +02:00
llama: fix RPC for -fit on (llama/18233)
This commit is contained in:
committed by
Georgi Gerganov
parent
b893e0813a
commit
b68b12f2d5
@@ -583,7 +583,7 @@ static rpc_tensor serialize_tensor(const ggml_tensor * tensor) {
|
||||
if (tensor->buffer) {
|
||||
ggml_backend_buffer_t buffer = tensor->buffer;
|
||||
ggml_backend_rpc_buffer_context * ctx = (ggml_backend_rpc_buffer_context *)buffer->context;
|
||||
result.buffer = ctx->remote_ptr;
|
||||
result.buffer = ctx != nullptr ? ctx->remote_ptr : 0;
|
||||
} else {
|
||||
result.buffer = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user