From 47fefa4d931864df5607d47ce84fb6a262ea53dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=A5=87=E5=8F=AF?= Date: Thu, 23 Aug 2018 17:18:12 +0800 Subject: [PATCH] fix std::max not found error --- mace/kernels/resize_bicubic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mace/kernels/resize_bicubic.h b/mace/kernels/resize_bicubic.h index 1da7c2b1..4bef1c90 100644 --- a/mace/kernels/resize_bicubic.h +++ b/mace/kernels/resize_bicubic.h @@ -54,7 +54,7 @@ inline const float* GetCoeffsTable() { } inline int64_t Bound(int64_t val, int64_t limit) { - return std::min(limit - 1ll, std::max(0ll, val)); + return std::min(limit - 1ll, std::max(0ll, val)); } inline void GetWeightsAndIndices(float scale, int64_t out_loc, int64_t limit, -- GitLab