projects
/
pytorch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7443d76
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Thu, 10 May 2018 09:21:07 +0000
(11:21 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Thu, 10 May 2018 09:21:07 +0000
(11:21 +0200)
lazy_linear.py
patch
|
blob
|
history
diff --git
a/lazy_linear.py
b/lazy_linear.py
index
7c9e398
..
4599f00
100755
(executable)
--- a/
lazy_linear.py
+++ b/
lazy_linear.py
@@
-1,8
+1,8
@@
-#!/usr/bin/env python
-for-pytorch
+#!/usr/bin/env python
from torch import nn, Tensor
-##########
+##########
############################################################
class LazyLinear(nn.Module):
@@
-23,7
+23,7
@@
class LazyLinear(nn.Module):
return self.core(x)
-##########
+##########
############################################################
model = nn.Sequential(nn.Conv2d(1, 8, kernel_size = 5),
nn.ReLU(inplace = True),