Closed abucka closed 2 years ago
when I want to extract the data using var.get_data<std::string>()
I run into the sigfpe (arithmetic error) on this line from tensor.h:
size_t size = TF_TensorByteSize(res_tensor) / TF_DataTypeSize(TF_TensorType(res_tensor));
I would really appreciate any help! :)
Hi @abucka
I am not quite sure right now, but I would say that you need to work with char
, not with std::string
.
Closing due to inactivity.
Hi,
I have a string tensor that looks like this:
(tensor: shape=[1], data= ["0007 HMS\342\226\221\342\226\221\342\226\221"])
How can I decode and extract the string? or just extract the string and decode in C++?