From: Edward Yang Date: Fri, 12 Apr 2019 18:13:39 +0000 (-0700) Subject: Fix tabs lint. (#19196) X-Git-Tag: accepted/tizen/6.5/unified/20211028.231830~254 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79db4e9c10805a73274c8eb8f352d456463cfca2;p=platform%2Fupstream%2Fpytorch.git 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 --- 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,>)