From 79db4e9c10805a73274c8eb8f352d456463cfca2 Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Fri, 12 Apr 2019 11:13:39 -0700 Subject: [PATCH] Fix tabs lint. (#19196) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/19196 ghimport-source-id: c10b1b19b087d7650e1614f008a9c2db21dfec2f Differential Revision: D14913428 Pulled By: ezyang fbshipit-source-id: 815b919d8e4516d0e5d89ebbdc4dff6d1d08da47 --- aten/src/TH/generic/THTensorMoreMath.cpp | 42 ++++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/aten/src/TH/generic/THTensorMoreMath.cpp b/aten/src/TH/generic/THTensorMoreMath.cpp index a3310e4..4684887 100644 --- a/aten/src/TH/generic/THTensorMoreMath.cpp +++ b/aten/src/TH/generic/THTensorMoreMath.cpp @@ -5,31 +5,31 @@ #include #include -#define TENSOR_IMPLEMENT_LOGICAL(NAME,OP) \ +#define TENSOR_IMPLEMENT_LOGICAL(NAME,OP) \ void THTensor_(NAME##Value)(THByteTensor *r_, THTensor* t, scalar_t value) \ { \ - THByteTensor_resizeNd(r_, t->dim(), THTensor_getSizePtr(t), NULL); \ - TH_TENSOR_APPLY2(unsigned char, r_, scalar_t, t, \ - *r__data = (*t_data OP value) ? 1 : 0;); \ - } \ - void THTensor_(NAME##ValueT)(THTensor* r_, THTensor* t, scalar_t value) \ - { \ - THTensor_(resizeNd)(r_, t->dim(), THTensor_getSizePtr(t), NULL); \ - TH_TENSOR_APPLY2(scalar_t, r_, scalar_t, t, \ - *r__data = (*t_data OP value) ? 1 : 0;); \ - } \ + THByteTensor_resizeNd(r_, t->dim(), THTensor_getSizePtr(t), NULL); \ + TH_TENSOR_APPLY2(unsigned char, r_, scalar_t, t, \ + *r__data = (*t_data OP value) ? 1 : 0;); \ + } \ + void THTensor_(NAME##ValueT)(THTensor* r_, THTensor* t, scalar_t value) \ + { \ + THTensor_(resizeNd)(r_, t->dim(), THTensor_getSizePtr(t), NULL); \ + TH_TENSOR_APPLY2(scalar_t, r_, scalar_t, t, \ + *r__data = (*t_data OP value) ? 1 : 0;); \ + } \ void THTensor_(NAME##Tensor)(THByteTensor *r_, THTensor *ta, THTensor *tb) \ - { \ - THByteTensor_resizeNd(r_, ta->dim(), THTensor_getSizePtr(ta), NULL); \ - TH_TENSOR_APPLY3(unsigned char, r_, scalar_t, ta, scalar_t, tb, \ - *r__data = (*ta_data OP *tb_data) ? 1 : 0;); \ - } \ + { \ + THByteTensor_resizeNd(r_, ta->dim(), THTensor_getSizePtr(ta), NULL); \ + TH_TENSOR_APPLY3(unsigned char, r_, scalar_t, ta, scalar_t, tb, \ + *r__data = (*ta_data OP *tb_data) ? 1 : 0;); \ + } \ void THTensor_(NAME##TensorT)(THTensor *r_, THTensor *ta, THTensor *tb) \ - { \ - THTensor_(resizeNd)(r_, ta->dim(), THTensor_getSizePtr(ta), NULL); \ - TH_TENSOR_APPLY3(scalar_t, r_, scalar_t, ta, scalar_t, tb, \ - *r__data = (*ta_data OP *tb_data) ? 1 : 0;); \ - } \ + { \ + THTensor_(resizeNd)(r_, ta->dim(), THTensor_getSizePtr(ta), NULL); \ + TH_TENSOR_APPLY3(scalar_t, r_, scalar_t, ta, scalar_t, tb, \ + *r__data = (*ta_data OP *tb_data) ? 1 : 0;); \ + } \ TENSOR_IMPLEMENT_LOGICAL(lt,<) TENSOR_IMPLEMENT_LOGICAL(gt,>) -- 2.7.4