Skip to content

Commit

Permalink
adding maxpool2d and flatten
Browse files Browse the repository at this point in the history
  • Loading branch information
codingwithsurya committed Oct 27, 2023
1 parent 5cbbaf0 commit 6a35554
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion training/training/core/dl_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class DLModel(nn.Module):
"SIGMOID": nn.Sigmoid,
"LOGSOFTMAX": nn.LogSoftmax,
"CONV2D": nn.Conv2d,
"DROPOUT": nn.Dropout
"DROPOUT": nn.Dropout,
"MAXPOOL2D": nn.MaxPool2d,
"FLATTEN": nn.Flatten
}

def __init__(self, layer_list: list[nn.Module]):
Expand Down

0 comments on commit 6a35554

Please sign in to comment.