

def setup(self, x_shape, y_shape=None):
    if self._initialized:
        return
    for layer in self.layers:
        layer.setup(x_shape)
        x_shape = layer.y_shape(x_shape)
    self.loss.setup(x_shape, y_shape)
    self._initialized = True

dataset/ETHPy150Open andersbll/deeppy/deeppy/feedforward/neural_network.py NeuralNetwork.setup/original