Skip to content

Build Method

Functions

build(self)

This method calls the build method of each layer in the model, initializing their weights and biases.

Source code in microkeras/models/sequential/build.py
1
2
3
4
5
6
7
def build(self):
    """
    This method calls the build method of each layer in the model,
    initializing their weights and biases.
    """
    for layer in self.layers:
        layer.build(layer.input_shape)