Determining Tensor datatype at runtime - Modular