-
Notifications
You must be signed in to change notification settings - Fork 106
Script run refactor and llapi #547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #547 +/- ##
==========================================
+ Coverage 75.84% 76.01% +0.17%
==========================================
Files 25 25
Lines 5406 5508 +102
==========================================
+ Hits 4100 4187 +87
- Misses 1306 1321 +15
Continue to review full report at Codecov.
|
…e runkey in DagOp free function. Closing the model key no longer leeds to a crash.
…disAI/RedisAI into Script_run_refactor_and_LLAPI
int res; | ||
for (size_t i = 0; i < len; i++) { | ||
res = Script_RunCtxAddParam(sctx, &sctx->inputs, inputTensors[i]); | ||
res = _Script_RunCtxAddParam(&sctx->inputs, inputTensors[i]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH
The function always returns 1
so maybe it should return void
?
if (!strcasecmp(arg_string, "TIMEOUT")) { | ||
if (_parseTimeout(argv[++argpos], error, timeout) == REDISMODULE_ERR) | ||
return REDISMODULE_ERR; | ||
arg_string = RedisModule_StringPtrLen(argv[++argpos], NULL); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please verify that this is not handled also in the dag parsing
Support async LLAPI (part 2/3): Refactor Script run command (parsing, execution as a single DAG op, persist tensors before reply to client). Support async LLAPI, in a similar way to the new model run async LLAPI.