Skip to content
Yi Zhu edited this page Jun 5, 2021 · 1 revision

Functionality

ResNet is Residual Network and it is very similar to the Sequential. It can be added with multiple layers and loaded to a Sequential network. Its variable type is a mutable constructor. However, it cannot be used alone. Its initialization, activation and update will be executed inside a Sequential network.

Usage

To create a new ResNet, a variable has to be initialized:

ResNet()

ResNet uses its property add_layer to add layer. It autofills the proper size of input data (input_shape) automatically. However, you can still override them just by giving in the key arguments.

(model::ResNet, layer::Any; args...)

model: self reference

layer: a type of layer

args: parameters of the layer for initialization