Skip to content

Commit 9980bed

Browse files
committed
DEP: remove deprecated import
1 parent df4ec52 commit 9980bed

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/nessai/flows/utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,7 @@ def reset_permutations(module):
294294
module : :obj:`torch.nn.Module`
295295
Module to reset
296296
"""
297-
with warnings.catch_warnings():
298-
warnings.simplefilter("ignore")
299-
from .transforms import LULinear
300-
if isinstance(module, (transforms.LULinear, LULinear)):
297+
if isinstance(module, transforms.LULinear):
301298
module.cache.invalidate()
302299
module._initialize(identity_init=True)
303300
elif isinstance(module, transforms.RandomPermutation):

0 commit comments

Comments
 (0)