MCPcopy Create free account
hub / github.com/RedisGears/RedisGears / _IsValidDag

Function _IsValidDag

plugins/python/redisgears_python.c:2289–2300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2287 */
2288
2289bool _IsValidDag(PyDAGRunner *pyDag) {
2290
2291 if(!PyObject_IsInstance((PyObject*)pyDag, (PyObject*)&PyDAGRunnerType)){
2292 PyErr_SetString(GearsError, "Given argument is not of type DAGRunner");
2293 return false;
2294 }
2295 if(pyDag->dag == NULL){
2296 PyErr_SetString(GearsError, "PyDAGRunner is invalid");
2297 return false;
2298 }
2299 return true;
2300}
2301
2302typedef int (*RAI_LoadTensorFunc)(RAI_DAGRunCtx *run_info, const char *t_name,
2303 RAI_Tensor *tensor);

Callers 6

_loadTensorToDAGFunction · 0.85
DAGAddTensorGetFunction · 0.85
DAGAddModelRunFunction · 0.85
DAGAddScriptRunFunction · 0.85
DAGAddOpsFromStringFunction · 0.85
DAGRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected