@@ -72,7 +72,7 @@ static void Dag_LoadInputsToCurrentOp(RedisAI_RunInfo *rinfo, RAI_DagOp *current
7272 }
7373
7474 for (uint i = 0 ; i < n_outkeys ; i ++ ) {
75- RAI_ExecutionCtx_AddOuputPlaceholder (currentOp -> ectx );
75+ RAI_ExecutionCtx_AddOutputPlaceholder (currentOp -> ectx );
7676 }
7777}
7878
@@ -260,7 +260,7 @@ void RedisAI_DagRunSession_ScriptRun_Step(RedisAI_RunInfo *rinfo, RAI_DagOp *cur
260260 RAI_ExecutionCtx_AddInput (currentOp -> ectx , inputTensors [i ]);
261261 }
262262 for (uint i = 0 ; i < n_outkeys ; i ++ ) {
263- RAI_ExecutionCtx_AddOuputPlaceholder (currentOp -> ectx );
263+ RAI_ExecutionCtx_AddOutputPlaceholder (currentOp -> ectx );
264264 }
265265 }
266266
@@ -574,44 +574,15 @@ int RedisAI_DagRun_Reply(RedisModuleCtx *ctx, RedisModuleString **argv, int argc
574574 break ;
575575 }
576576
577- case REDISAI_DAG_CMD_MODELRUN : {
578- rinfo -> dagReplyLength ++ ;
579- struct RedisAI_RunStats * rstats = NULL ;
580- RAI_GetRunStats (currentOp -> runkey , & rstats );
581- if (currentOp -> result == REDISMODULE_ERR ) {
582- RAI_SafeAddDataPoint (rstats , 0 , 1 , 1 , 0 );
583- RedisModule_ReplyWithError (ctx , currentOp -> err -> detail_oneline );
584- dag_error = 1 ;
585- } else if (currentOp -> result == -1 ) {
586- RedisModule_ReplyWithSimpleString (ctx , "NA" );
587- } else {
588- RAI_Tensor * t = NULL ;
589- if (RAI_ExecutionCtx_NumOutputs (currentOp -> ectx ) > 0 ) {
590- t = RAI_ExecutionCtx_GetOutput (currentOp -> ectx , 0 );
591- }
592- int batch_size = 0 ;
593- if (t ) {
594- batch_size = RAI_TensorDim (t , 0 );
595- }
596- RAI_SafeAddDataPoint (rstats , currentOp -> duration_us , 1 , 0 , batch_size );
597- RedisModule_ReplyWithSimpleString (ctx , "OK" );
598- }
599- break ;
600- }
601-
577+ case REDISAI_DAG_CMD_MODELRUN :
602578 case REDISAI_DAG_CMD_SCRIPTRUN : {
603579 rinfo -> dagReplyLength ++ ;
604- struct RedisAI_RunStats * rstats = NULL ;
605- RAI_GetRunStats (currentOp -> runkey , & rstats );
606580 if (currentOp -> result == REDISMODULE_ERR ) {
607- RAI_SafeAddDataPoint (rstats , 0 , 1 , 1 , 0 );
608581 RedisModule_ReplyWithError (ctx , currentOp -> err -> detail_oneline );
609582 dag_error = 1 ;
610583 } else if (currentOp -> result == -1 ) {
611584 RedisModule_ReplyWithSimpleString (ctx , "NA" );
612585 } else {
613- int batch_size = 1 ;
614- RAI_SafeAddDataPoint (rstats , currentOp -> duration_us , 1 , 0 , batch_size );
615586 RedisModule_ReplyWithSimpleString (ctx , "OK" );
616587 }
617588 break ;
0 commit comments