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 352f852 commit 3973d30Copy full SHA for 3973d30
src/redisai.c
@@ -790,11 +790,13 @@ int RedisAI_ScriptScan_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **arg
790
791
RedisModule_ReplyWithArray(ctx, nkeys);
792
793
+ RedisModuleString *empty_tag = RedisModule_CreateString(NULL, "", 0);
794
for (long long i = 0; i < nkeys; i++) {
795
RedisModule_ReplyWithArray(ctx, 2);
796
RedisModule_ReplyWithString(ctx, keys[i]);
- RedisModule_ReplyWithString(ctx, tags[i]);
797
+ RedisModule_ReplyWithString(ctx, tags[i] ? tags[i] : empty_tag);
798
}
799
+ RedisModule_FreeString(NULL, empty_tag);
800
801
RedisModule_Free(keys);
802
RedisModule_Free(tags);
tests/flow/tests_pytorch.py
@@ -859,7 +859,7 @@ def test_pytorch_modelscan_scriptscan(env):
859
ret = con.execute_command('AI.MODELSET', 'm1', 'TORCH', DEVICE, 'TAG', 'm:v1', 'BLOB', model_pb)
860
env.assertEqual(ret, b'OK')
861
862
- ret = con.execute_command('AI.MODELSET', 'm2', 'TORCH', DEVICE, 'TAG', 'm:v1', 'BLOB', model_pb)
+ ret = con.execute_command('AI.MODELSET', 'm2', 'TORCH', DEVICE, 'BLOB', model_pb)
863
864
865
script_filename = os.path.join(test_data_path, 'script.txt')
@@ -870,7 +870,7 @@ def test_pytorch_modelscan_scriptscan(env):
870
ret = con.execute_command('AI.SCRIPTSET', 's1', DEVICE, 'TAG', 's:v1', 'SOURCE', script)
871
872
873
- ret = con.execute_command('AI.SCRIPTSET', 's2', DEVICE, 'TAG', 's:v1', 'SOURCE', script)
+ ret = con.execute_command('AI.SCRIPTSET', 's2', DEVICE, 'SOURCE', script)
874
875
876
ensureSlaveSynced(con, env)
0 commit comments