Hi,
I am very new to the c++/cuda pytorch API and I would like to manipulate tensors containing integers (int64). I was wondering how to do so. Also the PackedTensorAccessor don’t seems to accepts int as first argument.
So just two examples, first instantiate a 0-valued tensor of type int:
torch::Tensor test = torch::zeros({5}, int);

or trying to get an accessor from an existing tensor:
torch::Tensor test = torch::zeros({5});
torch::PackedTensorAccessor<int, 1, torch::RestrictPtrTraits, size_t> acc = test.packed_accessor<int, 1, torch::RestrictPtrTraits, size_t>();

I also tried:
torch::Tensor test = torch::zeros({5});
torch::PackedTensorAccessor<torch:kInt, 1, torch::RestrictPtrTraits, size_t> acc = test.packed_accessor<torch:kInt, 1, torch::RestrictPtrTraits, size_t>();

I get error for such lines. I guess I must be missing something very obvious, can you help me?
Thank you in advance,
Samuel