Return a slice of the input tensor, which includes only some of the indices at axis. Specifically, it includes indices from start (inclusive) until end (exclusive).