Skip to content

Commit

Permalink
Fix messed up tests for dropout (pytorch#22893)
Browse files Browse the repository at this point in the history
Summary:
Fix pytorch#22109.

I've confirmed with suo that this wasn't intentional.
Pull Request resolved: pytorch#22893

Differential Revision: D16288640

Pulled By: Chillee

fbshipit-source-id: 00fd6fe418ecefb304866a723051d0e5451ba4d5
  • Loading branch information
Chillee authored and facebook-github-bot committed Jul 16, 2019
1 parent 8ced53d commit cd11109
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/test_jit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5960,7 +5960,6 @@ def __init__(self, in_channels, out_channels, **kwargs):
@torch.jit.script_method
def forward(self, x):
x = self.conv(x)
return x
x = self.bn(x)
return F.relu(x, inplace=True)

Expand All @@ -5972,7 +5971,6 @@ def __init__(self):
@torch.jit.script_method
def forward(self, x):
x = self.Conv2d_1a_3x3(x)
return x
return F.dropout(x, training=self.training)

class EagerConv2d(torch.nn.Module):
Expand All @@ -5983,7 +5981,6 @@ def __init__(self, in_channels, out_channels, **kwargs):

def forward(self, x):
x = self.conv(x)
return x
x = self.bn(x)
return F.relu(x, inplace=True)

Expand All @@ -5994,7 +5991,6 @@ def __init__(self):

def forward(self, x):
x = self.Conv2d_1a_3x3(x)
return x
return F.dropout(x, training=self.training)

script_input = torch.rand(4, 3, 299, 299)
Expand Down

0 comments on commit cd11109

Please sign in to comment.