Skip to content

Commit 067b745

Browse files
committed
Update
[ghstack-poisoned]
1 parent 20454f3 commit 067b745

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/dynamo/test_fx_graph_runnable.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def f(x):
111111
self._exec_and_verify_payload()
112112

113113
# testing dynamic shapes
114+
@unittest.skipIf(IS_FBCODE or IS_SANDCASTLE, "Skip in fbcode/sandcastle")
114115
def test_dynamic_shapes_run(self):
115116
torch._dynamo.reset()
116117
torch._dynamo.config.dynamic_shapes = True
@@ -125,6 +126,7 @@ def f(x):
125126
torch.compile(f)(a)
126127
self._exec_and_verify_payload()
127128

129+
@unittest.skipIf(IS_FBCODE or IS_SANDCASTLE, "Skip in fbcode/sandcastle")
128130
def test_broadcast_add_dynamic(self):
129131
torch._dynamo.reset()
130132
torch._dynamo.config.dynamic_shapes = True
@@ -140,6 +142,7 @@ def f(x, y):
140142
torch.compile(f)(x, y)
141143
self._exec_and_verify_payload()
142144

145+
@unittest.skipIf(IS_FBCODE or IS_SANDCASTLE, "Skip in fbcode/sandcastle")
143146
def test_toy_model_basic(self):
144147
model = ToyModel(input_size=8, hidden_size=16, output_size=4)
145148
model.eval() # Set to eval mode to avoid dropout randomness
@@ -148,6 +151,7 @@ def test_toy_model_basic(self):
148151
torch.compile(model)(x)
149152
self._exec_and_verify_payload()
150153

154+
@unittest.skipIf(IS_FBCODE or IS_SANDCASTLE, "Skip in fbcode/sandcastle")
151155
def test_toy_model_batch_processing(self):
152156
model = ToyModel(input_size=12, hidden_size=24, output_size=6)
153157
model.eval()
@@ -156,6 +160,7 @@ def test_toy_model_batch_processing(self):
156160
torch.compile(model)(x)
157161
self._exec_and_verify_payload()
158162

163+
@unittest.skipIf(IS_FBCODE or IS_SANDCASTLE, "Skip in fbcode/sandcastle")
159164
def test_toy_model_dynamic_batch(self):
160165
torch._dynamo.reset()
161166
torch._dynamo.config.dynamic_shapes = True

0 commit comments

Comments
 (0)