Modify tensor

narrow(tensor, slice)

Arguments

tensor

torch tensor

slice

dimension

Value

tensor