Closed tztsai closed 8 months ago
Currently the Linear layers of ANN is hand-coded as linear1, linear2, etc. It may be more flexible to use a list of Linear layers, so that the number of layers can vary and the forward method can also be simplified using a for loop.
Linear
ANN
linear1
linear2
forward
Currently the
Linear
layers ofANN
is hand-coded aslinear1
,linear2
, etc. It may be more flexible to use a list ofLinear
layers, so that the number of layers can vary and theforward
method can also be simplified using a for loop.