fix bug for windows
This commit is contained in:
@ -43,6 +43,7 @@ class Net(torch.nn.Module):
|
|||||||
x = self.predict(x) # linear output
|
x = self.predict(x) # linear output
|
||||||
return x
|
return x
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
# different nets
|
# different nets
|
||||||
net_SGD = Net()
|
net_SGD = Net()
|
||||||
net_Momentum = Net()
|
net_Momentum = Net()
|
||||||
|
|||||||
Reference in New Issue
Block a user