Beispiel #1
0
    def __iadd__(self, other: Layer):
        if isinstance(other, Dense):
            other.input_shape = (self.layers[-1].out_shape, )

        self.k = other.out_shape
        self.layers.append(other)
        return self