Starting from the current nightly build (and PyTorch 1.5 soon), for
value = value[0, :1, ...]

we can write
using namespace torch::indexing;
value = value.index({0, Slice(None, 1), "..."});

Here is the general translation for Tensor::index and Tensor::index_put_ functions:
Python             C++ (assuming `using namespace torch::indexing`)
-------------------------------------------------------------------
0                  0
None               None
...                "..." or Ellipsis
:                  Slice()
start:stop:step    Slice(start, stop, step)
True / False       true / false
[[1, 2]]           torch::tensor({{1, 2}})