Indexing with in-place operation

I read the libtorch indexing API at Tensor Indexing API — PyTorch master documentation
and try to figure out how to do such operation in c++

# python
a[:3] += b

If not in-place,

// c++
auto c = a.index({torch::indexing::None, 3});
c += b;
a.index_put_({torch::indexing::None, 3}, c);