Unverified Commit 8a0434d2 authored by Vasilis Vryniotis's avatar Vasilis Vryniotis Committed by GitHub
Browse files

Switching to Pytorch's clang-formatter. (#2872)

* Switching to Pytorch's clang-formatter.

* Replacing binary.
parent 8088cc94
...@@ -127,9 +127,10 @@ jobs: ...@@ -127,9 +127,10 @@ jobs:
- checkout - checkout
- run: - run:
command: | command: |
sudo apt-get update -y curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o clang-format
sudo apt-get install -y clang-format chmod +x clang-format
./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc sudo mv clang-format /opt/clang-format
./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc --clang-format-executable /opt/clang-format
binary_linux_wheel: binary_linux_wheel:
<<: *binary_common <<: *binary_common
......
...@@ -127,9 +127,10 @@ jobs: ...@@ -127,9 +127,10 @@ jobs:
- checkout - checkout
- run: - run:
command: | command: |
sudo apt-get update -y curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o clang-format
sudo apt-get install -y clang-format chmod +x clang-format
./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc sudo mv clang-format /opt/clang-format
./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc --clang-format-executable /opt/clang-format
binary_linux_wheel: binary_linux_wheel:
<<: *binary_common <<: *binary_common
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment