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 <rnett@calpoly.edu>
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
|
Just do |
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
|
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.