Hi! Lists are statically typed in TorchScript. The default type for a list declared like foo = [] is List[Tensor]
So in data.append(preprocessed_data) you are trying to append a list of tensors to a list of tensors.
You can fix this by annotating data properly (search “Variable Type Annotation” here 119).