Open linuxbckp opened 1 month ago
All the C API calls that are interfaced in tensorflow.cc
will be wrapped by classdefs eventually. So in order to compare the status code you just need to compare the output of tensorflow ('TF_GetCode', uint64_ptr_to_status)
What tensorflow needs are TF_OK and so on, not unofficial uint64_ptr_to_status
. Can you wrap it? Or I can show you the code.
See #5
In real tensorflow C code, developers need to judge states, here is an example:
if (TF_GetCode(status) != TF_OK) { foo(); }
This C API interface project needs status such as TF_OK.