Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/FBGEMM.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJongsoo Park <jongsoo@fb.com>2019-09-03 15:01:41 +0300
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2019-09-03 15:05:48 +0300
commite55a59653b70ef67e8f48373566756c477cda7b5 (patch)
tree41c48852375be4b1b1895a4abbb3c20f6908534b /bench/PackedFloatInOutBenchmark.cc
parentdc76fd4ce3094e929e2eda9c7860dcb8a559e098 (diff)
disable clang formatting in a few array definitions (#121)
Summary: Pull Request resolved: https://github.com/pytorch/FBGEMM/pull/121 By adding "// clang-format off" and "// clang-format on" we can still apply clang-format to these files. Reviewed By: jianyuh Differential Revision: D17159312 fbshipit-source-id: de523536df4c33f0efe332f9bc7b0290cdac1ba0
Diffstat (limited to 'bench/PackedFloatInOutBenchmark.cc')
-rw-r--r--bench/PackedFloatInOutBenchmark.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/bench/PackedFloatInOutBenchmark.cc b/bench/PackedFloatInOutBenchmark.cc
index 66ca67e..dcea65c 100644
--- a/bench/PackedFloatInOutBenchmark.cc
+++ b/bench/PackedFloatInOutBenchmark.cc
@@ -28,6 +28,7 @@ using namespace std;
using namespace fbgemm;
void performance_test() {
+ // clang-format off
vector<vector<int>> shapes = {
// NOTE: clang-format wants to use a different formatting but the current
// formatting should be easier to read.
@@ -66,6 +67,7 @@ void performance_test() {
{1, 128, 2722},
{16, 256, 512},
};
+ // clang-format on
bool flush = true;
std::vector<char> llc;