mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
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:
parent
a1bfa5eed7
commit
d5a2429c24
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user