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 eef59bc commit 099b835Copy full SHA for 099b835
ggml/src/ggml-rpc/ggml-rpc.cpp
@@ -983,7 +983,7 @@ bool rpc_server::buffer_clear(const rpc_msg_buffer_clear_req & request) {
983
984
ggml_tensor * rpc_server::deserialize_tensor(struct ggml_context * ctx, const rpc_tensor * tensor) {
985
// Validate tensor type before using it
986
- if (tensor->type < 0 || tensor->type >= GGML_TYPE_COUNT) {
+ if (tensor->type >= GGML_TYPE_COUNT) {
987
GGML_LOG_ERROR("[%s] invalid tensor type received: %u\n", __func__, tensor->type);
988
return nullptr;
989
}
0 commit comments