Simplified verify_tensor_dimensions()
Removed verify_tensor_dimensions