Fix flake8 failures (#51963)

Summary:
Fixes flake8 failures in test_autograd.py by using `gradcheck` from `torch.testing._internal.common_utils` rather than directly from`torch.autograd.gradcheck`

Pull Request resolved: https://github.com/pytorch/pytorch/pull/51963

Reviewed By: albanD

Differential Revision: D26339107

Pulled By: malfet

fbshipit-source-id: 63e0f12df16b70e394097ad88852984c1848a9e6
This commit is contained in:
Nikita Shulga 2021-02-09 06:59:16 -08:00 committed by Facebook GitHub Bot
parent a1bfa5eed7
commit d5a2429c24

View File

@ -22,7 +22,6 @@ torch.set_default_dtype(torch.double)
from torch import nn
from torch._six import inf, nan
from torch.autograd.gradcheck import gradgradcheck, gradcheck
from torch.autograd.function import once_differentiable
from torch.autograd.profiler import (profile, format_time, EventList,
FunctionEvent, FunctionEventAvg,