Is outputs a list containing tensors with different shapes?
If so, you would have to make sure the shapes are equal on the tensors, which should be added together. Otherwise this shape mismatch error will be raised.