Further implementation of TensorPreprocessor