From 458d6ab74cd9edb12828b2f098a20e24be070ce5 Mon Sep 17 00:00:00 2001 From: Simon Brugman Date: Fri, 6 Sep 2024 18:47:59 +0200 Subject: [PATCH] TST: add deprecated false negative example (#74) --- .../fixtures/deprecated_symbols/checker/deprecated_from_nn.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/fixtures/deprecated_symbols/checker/deprecated_from_nn.py b/tests/fixtures/deprecated_symbols/checker/deprecated_from_nn.py index 17e9058..a9f2866 100644 --- a/tests/fixtures/deprecated_symbols/checker/deprecated_from_nn.py +++ b/tests/fixtures/deprecated_symbols/checker/deprecated_from_nn.py @@ -6,3 +6,6 @@ import torch.nn as yy yy.UpsamplingNearest2d() + +func = torch.nn.UpsamplingNearest2d # not detected currently +func()