Last active
March 17, 2022 16:43
-
-
Save jamescasia/d10cbcbb9a0308ca73f7a3d4e16209c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FCN(nn.Module): | |
def __init__(self, input_dims, output_dims): | |
super(FCN, self).__init__() | |
self.model = nn.Sequential( | |
nn.Linear(input_dims, 5), | |
nn.LeakyReLU(), | |
nn.Linear(5, output_dims), | |
nn.Sigmoid() | |
) | |
def forward(self, X): | |
return self.model(X) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment