Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:birdwatcher:machinelearning
python-torch-stable
pytorch-hipify_python-copy-attrs.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pytorch-hipify_python-copy-attrs.patch of Package python-torch-stable
diff --git a/torch/utils/hipify/hipify_python.py b/torch/utils/hipify/hipify_python.py index 755a50404..0be123db3 100755 --- a/torch/utils/hipify/hipify_python.py +++ b/torch/utils/hipify/hipify_python.py @@ -207,10 +207,12 @@ def preprocess_file_and_save_result( hip_clang_launch, is_pytorch_extension, clean_ctx, show_progress) # Show what happened - if show_progress and "ignored" not in result.status: - print( - fin_path, "->", - result.hipified_path, result.status, flush=True) + if "ignored" not in result.status: + shutil.copystat(fin_path, result.hipified_path) + if show_progress: + print( + fin_path, "->", + result.hipified_path, result.status, flush=True) HIPIFY_FINAL_RESULT[fin_path] = result
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor