Fork自 PaddlePaddle / PaddleDetection
Make LoDTensor::lod_element return start and end offset of sequence