@@ -294,64 +294,6 @@ int RAI_llapi_DAG_resnet(RedisModuleCtx *ctx, RedisModuleString **argv, int argc
294294 return RedisModule_ReplyWithSimpleString (ctx , "DAG resnet success" );
295295}
296296
297- int RAI_llapi_DAGRun (RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) {
298- REDISMODULE_NOT_USED (argv );
299-
300- if (argc > 1 ) {
301- RedisModule_WrongArity (ctx );
302- return REDISMODULE_OK ;
303- }
304-
305- // Test the case a successful and failure tensor load input to DAG.
306- if (testLoadTensor (ctx ) != LLAPIMODULE_OK ) {
307- return RedisModule_ReplyWithSimpleString (ctx , "LOAD tensor test failed" );
308- }
309- // Test the case of a failure due to addition of a non compatible MODELRUN op.
310- if (testModelRunOpError (ctx ) != LLAPIMODULE_OK ) {
311- return RedisModule_ReplyWithSimpleString (ctx , "MODELRUN op error test failed" );
312- }
313- // Test the case of a failure due an empty DAG.
314- if (testEmptyDAGError (ctx ) != LLAPIMODULE_OK ) {
315- return RedisModule_ReplyWithSimpleString (ctx , "DAG keys mismatch error test failed" );
316- }
317- // Test the case of a failure due to an op within a DAG whose inkey does not exist in the DAG.
318- if (testKeysMismatchError (ctx ) != LLAPIMODULE_OK ) {
319- return RedisModule_ReplyWithSimpleString (ctx , "DAG keys mismatch error test failed" );
320- }
321- // Test the case of building and running a DAG with LOAD, TENSORGET and MODELRUN ops.
322- if (testSimpleDAGRun (ctx ) != LLAPIMODULE_OK ) {
323- return RedisModule_ReplyWithSimpleString (ctx , "Simple DAG run test failed" );
324- }
325- // Test the case of building and running a DAG with TENSORSET, SCRIPTRUN and TENSORGET ops.
326- if (testSimpleDAGRun2 (ctx ) != LLAPIMODULE_OK ) {
327- return RedisModule_ReplyWithSimpleString (ctx , "Simple DAG run2 test failed" );
328- }
329- // Test the case of building the same DAG as in previous test, but when this time it should return with an error.
330- if (testSimpleDAGRun2Error (ctx ) != LLAPIMODULE_OK ) {
331- return RedisModule_ReplyWithSimpleString (ctx , "Simple DAG run2 error test failed" );
332- }
333- // Test the case of building DAG ops from string.
334- if (testBuildDAGFromString (ctx ) != LLAPIMODULE_OK ) {
335- return RedisModule_ReplyWithSimpleString (ctx , "Build DAG from string test failed" );
336- }
337- return RedisModule_ReplyWithSimpleString (ctx , "DAG run success" );
338- }
339-
340- int RAI_llapi_DAG_resnet (RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) {
341- REDISMODULE_NOT_USED (argv );
342-
343- if (argc > 1 ) {
344- RedisModule_WrongArity (ctx );
345- return REDISMODULE_OK ;
346- }
347-
348- if (testDAGResnet (ctx ) != LLAPIMODULE_OK ) {
349- return RedisModule_ReplyWithSimpleString (ctx , "DAG resnet failed" );
350- }
351- return RedisModule_ReplyWithSimpleString (ctx , "DAG resnet success" );
352- }
353-
354-
355297int RedisModule_OnLoad (RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) {
356298 REDISMODULE_NOT_USED (argv );
357299 REDISMODULE_NOT_USED (argc );
0 commit comments