@@ -157,7 +157,7 @@ int testKeysMismatchError(RedisModuleCtx *ctx) {
157157 RAI_Tensor * t = (RAI_Tensor * )_getFromKeySpace (ctx , "a{1}" );
158158 RedisAI_DAGLoadTensor (run_info , "input" , t );
159159
160- RedisAI_DAGAddTensorGet (run_info , "non existing tensor" , err );
160+ RedisAI_DAGAddTensorGet (run_info , "non existing tensor" );
161161 int status = RedisAI_DAGRun (run_info , _DAGFinishFuncError , NULL , err );
162162 if (!_assertError (err , status , "ERR INPUT key cannot be found in DAG" )) {
163163 goto cleanup ;
@@ -203,7 +203,7 @@ int testBuildDAGFromString(RedisModuleCtx *ctx) {
203203 goto cleanup ;
204204 }
205205 RedisModule_Assert (RedisAI_DAGNumOps (run_info ) == 3 );
206- RedisAI_DAGAddTensorGet (run_info , "input1" , results . error );
206+ RedisAI_DAGAddTensorGet (run_info , "input1" );
207207 RedisModule_Assert (RedisAI_DAGNumOps (run_info ) == 4 );
208208
209209 pthread_mutex_lock (& global_lock );
@@ -247,7 +247,7 @@ int testSimpleDAGRun(RedisModuleCtx *ctx) {
247247 goto cleanup ;
248248 }
249249
250- RedisAI_DAGAddTensorGet (run_info , "output" , results . error );
250+ RedisAI_DAGAddTensorGet (run_info , "output" );
251251 pthread_mutex_lock (& global_lock );
252252 if (RedisAI_DAGRun (run_info , _DAGFinishFunc , & results , results .error ) != REDISMODULE_OK ) {
253253 pthread_mutex_unlock (& global_lock );
@@ -300,7 +300,7 @@ int testSimpleDAGRun2(RedisModuleCtx *ctx) {
300300 goto cleanup ;
301301 }
302302
303- RedisAI_DAGAddTensorGet (run_info , "output" , results . error );
303+ RedisAI_DAGAddTensorGet (run_info , "output" );
304304 pthread_mutex_lock (& global_lock );
305305 if (RedisAI_DAGRun (run_info , _DAGFinishFunc , & results , results .error ) != REDISMODULE_OK ) {
306306 pthread_mutex_unlock (& global_lock );
@@ -350,7 +350,7 @@ int testSimpleDAGRun2Error(RedisModuleCtx *ctx) {
350350 goto cleanup ;
351351 }
352352
353- RedisAI_DAGAddTensorGet (run_info , "output" , results . error );
353+ RedisAI_DAGAddTensorGet (run_info , "output" );
354354 pthread_mutex_lock (& global_lock );
355355 if (RedisAI_DAGRun (run_info , _DAGFinishFunc , & results , results .error ) != REDISMODULE_OK ) {
356356 pthread_mutex_unlock (& global_lock );
@@ -412,7 +412,7 @@ int testDAGResnet(RedisModuleCtx *ctx) {
412412 RedisAI_DAGRunOpAddOutput (script_op , "output:{{1}}" );
413413 RedisAI_DAGAddRunOp (run_info , script_op , results .error );
414414
415- RedisAI_DAGAddTensorGet (run_info , "output:{{1}}" , results . error );
415+ RedisAI_DAGAddTensorGet (run_info , "output:{{1}}" );
416416
417417 pthread_mutex_lock (& global_lock );
418418 if (RedisAI_DAGRun (run_info , _DAGFinishFunc , & results , results .error ) != REDISMODULE_OK ) {
0 commit comments