def __str__(self):
        rval = []
        for layer in self.layers:
            rval.append(layer.layer_name)
            input_space = layer.get_input_space()
            rval.append('\tInput space: ' + str(input_space))
            rval.append('\tTotal input dimension: ' +
                        str(input_space.get_total_dimension()))
        rval = '\n'.join(rval)
        return rval
Distribute TensorProducts across addition.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/mlp.py/MLP.__str__--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/physics/quantum/tensorproduct.py/TensorProduct._eval_expand_tensorproduct