Hi Martin,
Thanks for the suggested code. I just have a quick question, can from_blob create a constant tensor by taking a constant array as input? For example, given a constant reference of a float array data_array, and try to do the following:
``’
torch::Tensor tensor = torch::from_blob(data_array, tensor_size);
Is there any way to make from_blob (or any other alternative method) works in this case? Thanks!