I have a tensor which contains boxes predict by detection. and it’s format like:
cx, cy, w, h
I want convert this tensor to:
x1, y1, w, h
So I can do this in python:
boxes[:, :2] -= boxes[:, 2:] / 2
    boxes[:, 2:] += boxes[:, :2]

But how to do this in libtorch???
support I have
torch::Tensor boxes