Created by: panyx0718
Recently researched the code and see why it doesn't work well with ParallelExecutor during inference. Added some comments.