diff --git a/python/jittor/__init__.py b/python/jittor/__init__.py index 645a65d0..01296439 100644 --- a/python/jittor/__init__.py +++ b/python/jittor/__init__.py @@ -8,7 +8,7 @@ # This file is subject to the terms and conditions defined in # file 'LICENSE.txt', which is part of this source code package. # *************************************************************** -__version__ = '1.2.2.44' +__version__ = '1.2.2.45' from . import lock with lock.lock_scope(): ori_int = int diff --git a/src/ops/array_op.cc b/src/ops/array_op.cc index bdcbedf6..9e626a2b 100644 --- a/src/ops/array_op.cc +++ b/src/ops/array_op.cc @@ -81,8 +81,8 @@ void ArrayOp::jit_prepare(JK& jk) { // fill or find cbuffer for const var pass if (output->dtype().dsize() == 4) { - auto x = abs(ptr()[0]); - auto y = abs(ptr()[0]); + auto x = std::abs(ptr()[0]); + auto y = std::abs(ptr()[0]); auto z = ptr()[0]; if ((x<=2) || (y==1.0f || y==2.0f)) jk << _CS("[o:") << z << ']';