Uh oh!
There was an error while loading. Please reload this page.
Logging - #345
Conversation
rnett
commented
Jun 25, 2021
@saudet I'm getting c++ errors when mapping .put(newInfo("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? |
saudet
commented
Jun 25, 2021
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 |
rnett
commented
Jun 26, 2021
All I need to do is read the string from it, (i.e. |
…values passed to adapters (issue tensorflow/java#345)
saudet
commented
Jun 26, 2021
I've made it possible to apply a cast there in commit bytedeco/javacpp@3feb62d. In this case, something like |
rnett
commented
Jun 27, 2021
Getting new errors like: after I changed the info to: .put(
newInfo("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 <rnett@calpoly.edu>
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
saudet
commented
Jun 27, 2021
Just do |
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
rnett
commented
Jun 27, 2021
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.