Compute feature for the last sequence