We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e25dde commit 0e1ccf1Copy full SHA for 0e1ccf1
ggml/src/ggml-rpc/ggml-rpc.cpp
@@ -583,7 +583,7 @@ static rpc_tensor serialize_tensor(const ggml_tensor * tensor) {
583
if (tensor->buffer) {
584
ggml_backend_buffer_t buffer = tensor->buffer;
585
ggml_backend_rpc_buffer_context * ctx = (ggml_backend_rpc_buffer_context *)buffer->context;
586
- result.buffer = ctx->remote_ptr;
+ result.buffer = ctx != nullptr ? ctx->remote_ptr : 0;
587
} else {
588
result.buffer = 0;
589
}
0 commit comments