I need to copy a row of one tensor into some part of another tensor, form which the begin and end indexes are available. Withing C++ we can use something like
  int myints[]={10,20,30,40,50,60,70};
  std::vector<int> myvector (18);

  std::copy ( myints, myints+3, myvector.begin()+4 );

I can copy three values from myints into myvector, starting at the fourth index.
I was wondering if there is a similar API in torch?