@leimao
That link works, the quote symbol is problematic, I fixed it.
But if you want to use from_blob, that’s not in tensor examples.
See this ‘https://github.com/pytorch/pytorch/blob/b3f0297a94977636fd90c0fe6fa9b971ff9f81e2/aten/src/ATen/native/quantized/cpu/conv_serialization.h#L116 68’
You can take a look how we use it.
A short example is like this:
Tensor out = torch::from_blob(vec.data_ptr(), {sizes},torch::Device(torch::kCUDA, 0).dtype(torch::kFloat32));