I have figured out the reason. It is because the data class of the output of torchscript is not supported in the deployment environment.
So is there any way to register a new data class which consist of the same codes of the original one in torchscript in the deployment environment and construct links between them?