Skip to content

Commit 4c2206b

Browse files
authored
Replace torchdynamo with alias to torch._dynamo (#1755)
1 parent 8536908 commit 4c2206b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+111
-37220
lines changed

.circleci/config.yml

-25
Original file line numberDiff line numberDiff line change
@@ -630,28 +630,3 @@ workflows:
630630
gpu:
631631
jobs:
632632
- unit_test
633-
- coverage
634-
- aot_eager_hf_inference
635-
- aot_eager_hf_training
636-
- aot_eager_timm_inference
637-
- aot_eager_timm_training
638-
- aot_eager_torchbench_training
639-
- aot_eager_torchbench_inference
640-
- inductor_hf_inference_0
641-
- inductor_hf_inference_1
642-
- inductor_hf_training_0
643-
- inductor_hf_training_1
644-
- inductor_hf_training_2
645-
- inductor_timm_inference_0
646-
- inductor_timm_inference_1
647-
- inductor_timm_inference_2
648-
- inductor_timm_inference_3
649-
- inductor_timm_training_0
650-
- inductor_timm_training_1
651-
- inductor_timm_training_2
652-
- inductor_timm_training_3
653-
- inductor_timm_training_4
654-
- inductor_timm_training_5
655-
- inductor_torchbench_inference
656-
- inductor_torchbench_training_0
657-
- inductor_torchbench_training_1

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ PIP ?= python -m pip
1212

1313
# versions used in CI
1414
# Also update the "Install nightly binaries" section of the README when updating these
15-
PYTORCH_VERSION ?= dev20221014
16-
TRITON_VERSION ?= af76c989eb4799b015f8b288ccd8421558772e56
15+
PYTORCH_VERSION ?= dev20221017
16+
TRITON_VERSION ?= db3aa1d1fb2bb536752a71d9e0f03cf6a86ddf65
1717

1818

1919
default: develop

test/dynamo/test_minifier.py

-98
This file was deleted.

test/dynamo/test_misc.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ def fn3(x):
11671167
fn3(torch.randn(4, 5))
11681168
self.assertFalse(True)
11691169
except torchdynamo.exc.Unsupported as e:
1170-
self.assertIn("call torchdynamo.disable() wrapped function", str(e))
1170+
self.assertIn("call torch._dynamo.disable() wrapped function", str(e))
11711171

11721172
def test_graph_break(self):
11731173
cnts = torchdynamo.testing.CompileCounter()
@@ -2418,7 +2418,7 @@ def test_config_log_level(self):
24182418
def fn(a, b):
24192419
return a + b
24202420

2421-
with self.assertLogs(logger="torchdynamo", level=logging.DEBUG) as log:
2421+
with self.assertLogs(logger="torch._dynamo", level=logging.DEBUG) as log:
24222422
torchdynamo.config.log_level = logging.DEBUG
24232423
fn(torch.randn(10), torch.randn(10))
24242424
cur_len = len(log)
@@ -2428,6 +2428,7 @@ def fn(a, b):
24282428
fn(torch.randn(10), torch.randn(10))
24292429
self.assertEqual(cur_len, len(log))
24302430

2431+
@unittest.skip("disabled")
24312432
def test_duplicate_graph_break_warning(self):
24322433
@torchdynamo.optimize("eager")
24332434
def f1(a, b):
@@ -2450,12 +2451,12 @@ def g2(a, b):
24502451
def count_graph_break_msgs(msgs):
24512452
return sum(msg.find("Graph break") != -1 for msg in msgs)
24522453

2453-
with self.assertLogs(logger="torchdynamo", level=logging.WARNING) as log:
2454+
with self.assertLogs(logger="torch._dynamo", level=logging.WARNING) as log:
24542455
torchdynamo.config.verbose = True
24552456
f1(torch.randn(10), torch.randn(10))
24562457
self.assertGreater(count_graph_break_msgs(log.output), 1)
24572458

2458-
with self.assertLogs(logger="torchdynamo", level=logging.WARNING) as log:
2459+
with self.assertLogs(logger="torch._dynamo", level=logging.WARNING) as log:
24592460
torchdynamo.config.verbose = False
24602461
g1(torch.randn(10), torch.randn(10))
24612462
self.assertEqual(count_graph_break_msgs(log.output), 1)

test/dynamo/test_recompile_ux.py

-205
This file was deleted.

0 commit comments

Comments
 (0)