Skip to content

Commit

Permalink
Fix abs specialization for uint8_t type. (#4521)
Browse files Browse the repository at this point in the history
Signed-off-by: HE, Tao <[email protected]>
  • Loading branch information
sighingnow authored and soumith committed Jan 7, 2018
1 parent e5f2542 commit 5c641cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aten/src/THC/THCNumerics.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct THCNumerics<uint8_t> {
static inline __host__ __device__ uint8_t mul(uint8_t a, uint8_t b) { return a * b; }
static inline __host__ __device__ uint8_t sub(uint8_t a, uint8_t b) { return a - b; }
static inline __host__ __device__ uint8_t div(uint8_t a, uint8_t b) { return a / b; }
static inline __host__ __device__ uint8_t abs(uint8_t a) { return abs(a); }
static inline __host__ __device__ uint8_t abs(uint8_t a) { return a; }
};

template <>
Expand Down

0 comments on commit 5c641cc

Please sign in to comment.