-
Notifications
You must be signed in to change notification settings - Fork 202
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
Logging #345
base: master
Are you sure you want to change the base?
Logging #345
Conversation
@saudet I'm getting c++ errors when mapping .put(new Info("absl::string_view", "absl::lts_2020_09_23::string_view", "string", "std::string", "tensorflow::string").annotations("@StdString")
.valueTypes("@Cast({\"char*\", \"std::string&&\"}) BytePointer", "@Cast({\"char*\", \"std::string&&\"}) String")
.pointerTypes("@Cast({\"char*\", \"std::string*\"}) BytePointer")) but I'm getting errors:
Any idea why? |
string_view doesn't provide an implicit cast to std::string, so we have to cast it explicitly. I'm not too sure what we should do about that. I've currently mapped those to |
All I need to do is read the string from it, (i.e. |
…values passed to adapters (issue tensorflow/java#345)
I've made it possible to apply a cast there in commit bytedeco/javacpp@3feb62d. In this case, something like |
Getting new errors like:
after I changed the info to: .put(
new Info("absl::string_view")
.annotations("@StdString")
.valueTypes(
"@Cast({\"\", \"\", \"std::string\"}) BytePointer",
"@Cast({\"\", \"\", \"std::string\"}) String")
.pointerTypes("@Cast({\"\", \"\", \"std::string\"}) BytePointer")) |
Well, all except the text message, which I need. |
Signed-off-by: Ryan Nett <[email protected]>
Signed-off-by: Ryan Nett <[email protected]>
Just do |
Signed-off-by: Ryan Nett <[email protected]>
Ok, the prototype works, but it doesn't get all log messages. Reported at tensorflow/tensorflow#44995 (comment) |
This PR is mapping TFLogSink from tensorflow/tensorflow#41733 (which replaces
TF_RegisterLogListener
) and hooking it up to Slf4j.