Created
June 8, 2019 19:49
-
-
Save vaibhavkumar049/267df32ac3ffa2c25287a1cdacb1f8b2 to your computer and use it in GitHub Desktop.
This file contains 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 FirstNetwork_v2(nn.Module): | |
def __init__(self): | |
super().__init__() | |
torch.manual_seed(0) | |
self.net = nn.Sequential( | |
nn.Linear(2, 2), | |
nn.Sigmoid(), | |
nn.Linear(2, 4), | |
nn.Softmax() | |
) | |
def forward(self, X): | |
return self.net(X) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment