aesara.tensor.TensorVariable.flatten# TensorVariable.flatten(ndim=1)[source]# Returns a view of this variable with ndim dimensions, whose shape for the first ndim-1 dimensions will be the same as self, and shape in the remaining dimension will be expanded to fit in all the data from self.