Create a tensor using torch::from_blob failed

I use torch::from_blob in C++ to create a tensor, and failed with "The deleter and context arguments are mutually exclusive.“
it seems that the it is because the tensorMaker is with both deleter and context which i don’t know why.
my code is like below:
‘’’
x = torch::from_blob(data, {shape0, shape1}, torch::TensoorOptions().dtype(torch::kF32));
‘’’
p.s. it seems the error occurs when i update torch from 1.10 to 1.13. And only when building with release will this happen
i’d be grateful if anyone can give some advice