Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need TF_status API such as TF_OK #4

Open
linuxbckp opened this issue Jul 10, 2024 · 3 comments
Open

Need TF_status API such as TF_OK #4

linuxbckp opened this issue Jul 10, 2024 · 3 comments

Comments

@linuxbckp
Copy link

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
Copy link
Owner

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
Copy link
Author

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 linuxbckp reopened this Jul 11, 2024
@linuxbckp
Copy link
Author

See #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants