Skip to content

Commit 4dfdbd4

Browse files
committed
Remove copypasta comments
1 parent 7a27c4e commit 4dfdbd4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

model.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ class StringNet(nn.Module):
2929
def __init__(self, n_classes: int, seq_length: int, batch_size: int,
3030
lstm_hidden_dim: int = 100, bidirectional: bool = False, lstm_layers: int = 2,
3131
lstm_dropout: float = 0.5, fc2_dim: int = 100):
32-
"""
33-
In the constructor we instantiate two nn.Linear modules and assign them as
34-
member variables.
35-
"""
3632
super(StringNet, self).__init__()
3733

3834
self.n_classes = n_classes
@@ -72,11 +68,6 @@ def init_hidden(self, input_length):
7268
torch.zeros(self.lstm_layers * self.directions, input_length, self.lstm_hidden_dim).to(device))
7369

7470
def forward(self, x):
75-
"""
76-
In the forward function we accept a Variable of input data and we must
77-
return a Variable of output data. We can use Modules defined in the
78-
constructor as well as arbitrary operators on Variables.
79-
"""
8071
current_batch_size = x.shape[0]
8172
x = F.relu(self.bn1(self.conv1(x)))
8273
x = res1 = self.pool1(x)

0 commit comments

Comments
 (0)