Skip to content

Commit

Permalink
suppress errors in fbcode/vision - batch 1
Browse files Browse the repository at this point in the history
Differential Revision: D29458436

fbshipit-source-id: f549cdf25661e63b93eef46b519e1d27909e283b
  • Loading branch information
Pyre Bot Jr authored and facebook-github-bot committed Jun 29, 2021
1 parent efd921a commit 166a030
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_jit_model_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def forward(self, x: torch.Tensor) -> torch.Tensor:
x = x.reshape(-1, 2, 5)
x = self.conv(x)
x = torch.flatten(x, 1)
x = 3 * self.fc(x) + 1 # pyre-ignore[9]
x = 3 * self.fc(x) + 1
return x


Expand Down
2 changes: 2 additions & 0 deletions tests/test_weight_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def test_conv_weight_init(self) -> None:
spatial_dim = k_size ** 3

# Calculate fan_in and fan_out.
# pyre-fixme[61]: `spatial_dim` may not be initialized here.
fan_in = c_in_dim * spatial_dim
# pyre-fixme[61]: `spatial_dim` may not be initialized here.
fan_out = c_out_dim * spatial_dim

# Msra weight init check.
Expand Down

0 comments on commit 166a030

Please sign in to comment.