mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
turn on -Werror=unused-variable in our Bazel CPU build
Summary: We also fix any existing issues. Note that we only do this for the CPU build because nvcc is considered a C++ toolchain but it does not have the same flag support. Adding flags to the GPU build will cause nvcc errors. Test Plan: Built locally, rely on CI to confirm. Reviewers: malfet Subscribers: Tasks: Tags: Pull Request resolved: https://github.com/pytorch/pytorch/pull/79156 Approved by: https://github.com/seemethere, https://github.com/osalpekar, https://github.com/albanD
This commit is contained in:
committed by
PyTorch MergeBot
parent
e727539c29
commit
ab2ca95dd1
@@ -1940,7 +1940,6 @@ TEST_F(FunctionalTest, InstanceNorm2d) {
|
||||
|
||||
TEST_F(FunctionalTest, InstanceNorm2dDefaultOptions) {
|
||||
int num_features = 5;
|
||||
double eps = 1e-05;
|
||||
|
||||
auto input = torch::arange(2. * num_features * 2 * 2).view({2, num_features, 2, 2});
|
||||
auto output = F::instance_norm(input);
|
||||
@@ -2031,7 +2030,6 @@ TEST_F(FunctionalTest, InstanceNorm3d) {
|
||||
|
||||
TEST_F(FunctionalTest, InstanceNorm3dDefaultOptions) {
|
||||
int num_features = 5;
|
||||
double eps = 1e-05;
|
||||
|
||||
auto input = torch::arange(2. * num_features * 2 * 2 * 2).view({2, num_features, 2, 2, 2});
|
||||
auto output = F::instance_norm(input);
|
||||
|
||||
Reference in New Issue
Block a user