Skip to content

Commit 90ff985

Browse files
committed
Update on "Add batching rule for "is_complex", "conj""
To unblock #43208, which adds "is_complex" checks to backward formulas that are being tested for batched gradient support with vmap. Test Plan: - `pytest test/test_vmap.py -v` Differential Revision: [D23685356](https://our.internmc.facebook.com/intern/diff/D23685356) [ghstack-poisoned]
2 parents eb3a452 + e7f2993 commit 90ff985

File tree

149 files changed

+4099
-1620
lines changed

Some content is hidden

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

149 files changed

+4099
-1620
lines changed

.circleci/cimodel/data/caffe2_build_data.py

Lines changed: 0 additions & 91 deletions
This file was deleted.

.circleci/cimodel/data/caffe2_build_definitions.py

Lines changed: 0 additions & 174 deletions
This file was deleted.

.circleci/cimodel/data/pytorch_build_data.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
("asan", [XImportant(True)]),
2222
]),
2323
]),
24+
("7", [
25+
("3.6", [
26+
("onnx", [XImportant(True)]),
27+
]),
28+
]),
2429
]),
2530
("cuda", [
2631
("9.2", [
@@ -149,6 +154,7 @@ def child_constructor(self):
149154
"vulkan": VulkanConfigNode,
150155
"parallel_tbb": ParallelTBBConfigNode,
151156
"parallel_native": ParallelNativeConfigNode,
157+
"onnx": ONNXConfigNode,
152158
"libtorch": LibTorchConfigNode,
153159
"important": ImportantConfigNode,
154160
"build_only": BuildOnlyConfigNode,
@@ -192,6 +198,17 @@ def child_constructor(self):
192198
return ImportantConfigNode
193199

194200

201+
class ONNXConfigNode(TreeConfigNode):
202+
def modify_label(self, label):
203+
return "Onnx=" + str(label)
204+
205+
def init2(self, node_name):
206+
self.props["is_onnx"] = node_name
207+
208+
def child_constructor(self):
209+
return ImportantConfigNode
210+
211+
195212
class VulkanConfigNode(TreeConfigNode):
196213
def modify_label(self, label):
197214
return "Vulkan=" + str(label)

.circleci/cimodel/data/pytorch_build_definitions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ def instantiate_configs():
263263
compiler_version = fc.find_prop("compiler_version")
264264
is_xla = fc.find_prop("is_xla") or False
265265
is_asan = fc.find_prop("is_asan") or False
266+
is_onnx = fc.find_prop("is_onnx") or False
266267
is_pure_torch = fc.find_prop("is_pure_torch") or False
267268
is_vulkan = fc.find_prop("is_vulkan") or False
268269
parms_list_ignored_for_docker_image = []
@@ -302,6 +303,12 @@ def instantiate_configs():
302303
parms_list[0] = fc.find_prop("abbreviated_pyver")
303304
restrict_phases = ["build", "test1", "test2"]
304305

306+
if is_onnx:
307+
parms_list.append("onnx")
308+
python_version = fc.find_prop("pyver")
309+
parms_list[0] = fc.find_prop("abbreviated_pyver")
310+
restrict_phases = ["build", "ort_test1", "ort_test2"]
311+
305312
if cuda_version:
306313
cuda_gcc_version = fc.find_prop("cuda_gcc_override") or "gcc7"
307314
parms_list.append(cuda_gcc_version)

.circleci/cimodel/data/simple/docker_definitions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@
2020
"pytorch-linux-xenial-cuda9.2-cudnn7-py3-gcc7",
2121
"pytorch-linux-xenial-py3-clang5-android-ndk-r19c",
2222
"pytorch-linux-xenial-py3-clang5-asan",
23+
"pytorch-linux-xenial-py3-clang7-onnx",
2324
"pytorch-linux-xenial-py3.8",
2425
"pytorch-linux-xenial-py3.6-clang7",
2526
"pytorch-linux-xenial-py3.6-gcc4.8",
2627
"pytorch-linux-xenial-py3.6-gcc5.4",
2728
"pytorch-linux-xenial-py3.6-gcc7.2",
2829
"pytorch-linux-xenial-py3.6-gcc7",
29-
"pytorch-linux-xenial-rocm3.3-py3.6",
30-
"pytorch-linux-xenial-rocm3.5.1-py3.6",
3130
"pytorch-linux-bionic-rocm3.7-py3.6",
3231
]
3332

0 commit comments

Comments
 (0)