tom:

from_blob


Hey Thomas,
Thanks for replying, I’m not a C++ developer so I need a little bit more clarification.
I’m only dealing with 1d tensors so if I go with int32_t* am I on the right track with -
auto r_ptr = result_t.data_ptr<int32_t>();
std::vector<int32_t> result{r_ptr, r_ptr + result_t.?};

If so, how do I get the size of the torch::Tensor result_t?
Regards,