Hello,
due to infrastructural limitations, I need to use a const input to from_blob to create a torch::tensor. Minimal reproducible example:
#include <iostream>
#include <torch/torch.h>

int main ()
{
    const float array[] = {1.23, 2.34, 3.45, 4.56, 5.67};
    auto options = torch::TensorOptions().dtype(torch::kFloat32);
    torch::Tensor t1 = torch::from_blob(array, {5}, options);
    std::cout << t1 << std::endl;
    return 0;
}

This raises however a compilation error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]. Of course I can cast away the const-ness of the array, but is there a way to avoid this? Can I somehow use from_blob (or similar)  with const data input?
As always, help is highly appreciated… 
Thank you & Best regards,
RB