Skip to content

Commit 429f33e

Browse files
jithunnair-amdfacebook-github-bot
authored andcommitted
Fix breakage caused by PyTorch PR #43528
Summary: Fixes facebookresearch#2068 cc hgaspar Pull Request resolved: facebookresearch#2069 Reviewed By: alexander-kirillov Differential Revision: D23949698 Pulled By: ppwwyyxx fbshipit-source-id: 8d8ae859828058a3cb536eb825ecbf2921a9f7e9
1 parent 1be7af2 commit 429f33e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setup.py

+5
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ def get_extensions():
8787
)
8888

8989
sources = [main_source] + sources
90+
sources = [
91+
s
92+
for s in sources
93+
if not is_rocm_pytorch or torch_ver < [1, 7] or not s.endswith("hip/vision.cpp")
94+
]
9095

9196
extension = CppExtension
9297

0 commit comments

Comments
 (0)