pr0m1th3as / tensorflow

TensorFlow interface for GNU Octave
GNU General Public License v3.0
4 stars 1 forks source link

Need TF_status API such as TF_OK #4

Open linuxbckp opened 1 month ago

linuxbckp commented 1 month ago

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.

pr0m1th3as commented 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)

linuxbckp commented 1 month ago

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.

linuxbckp commented 1 month ago

See #5