-
Notifications
You must be signed in to change notification settings - Fork 106
Code refactoring, consistent error messages, and RedisAI_ModelRun_RedisCommand optimizations #321
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
… (only 1 full-loop vs 5)
…dd] enforced error reply string comparison on tests. [fix] error messages consistent across commands for tensor getting, etc...
Codecov Report
@@ Coverage Diff @@
## master #321 +/- ##
==========================================
+ Coverage 56.81% 56.96% +0.14%
==========================================
Files 26 27 +1
Lines 5155 5080 -75
==========================================
- Hits 2929 2894 -35
+ Misses 2226 2186 -40
Continue to review full report at Codecov.
|
… [add] quick refactoring to have consistent command description on redisai.c
lantiga
left a comment
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.
Looks great. I've committed a couple of nits, we're good to merge
Code refactoring, consistent error messages, and RedisAI_ModelRun_RedisCommand optimizations (#321) * [wip] simplified argument processing on RedisAI_ModelRun_RedisCommand (only 1 full-loop vs 5) * [add] code refactoring to reduce duplicates and reduce complexity. [add] enforced error reply string comparison on tests. [fix] error messages consistent across commands for tensor getting, etc... * [add] increased coverage for tensorset and remove duplicate code * [fix] ensuring slaves synced on tests_pytorch:test_pytorch_scriptrun. [add] quick refactoring to have consistent command description on redisai.c * [fix] ERR error normalization. * Fix function names, error message, correct warning Co-authored-by: Luca Antiga <luca.antiga@orobix.com>
Current WIP
RedisModule_AutoMemory(ctx)fromRedisAI_TensorGet_RedisCommand,RedisAI_ModelSet_RedisCommand,RedisAI_ModelGet_RedisCommand,RedisAI_ModelDel_RedisCommand,RedisAI_ModelRun_RedisCommand,RedisAI_ScriptDel_RedisCommandqueuefromredisai.ctoutil/queue.c