From 4af72803427f898cd4f900c6343233db660d05cd Mon Sep 17 00:00:00 2001 From: Dun Liang Date: Wed, 24 Mar 2021 22:06:27 +0800 Subject: [PATCH] polish test error --- python/jittor/__init__.py | 2 +- python/jittor/test/test_slice.py | 2 +- src/ops/unary_op.cc | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/python/jittor/__init__.py b/python/jittor/__init__.py index b3a0973f..7501ccd0 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.56' +__version__ = '1.2.2.57' from . import lock with lock.lock_scope(): ori_int = int diff --git a/python/jittor/test/test_slice.py b/python/jittor/test/test_slice.py index e381c4ec..867d6b38 100644 --- a/python/jittor/test/test_slice.py +++ b/python/jittor/test/test_slice.py @@ -137,7 +137,7 @@ class TestSlice(unittest.TestCase): def test_vary_shape_setitem(self): a = jt.array([1,2,3,4,5]) b = jt.array([1,2,3,4,5]) - c = jt.where(b>3) + c = tuple(jt.where(b>3)) a[c] = 0 assert (a.data == [1,2,3,0,0]).all() diff --git a/src/ops/unary_op.cc b/src/ops/unary_op.cc index c99b3acd..641ece4f 100644 --- a/src/ops/unary_op.cc +++ b/src/ops/unary_op.cc @@ -260,7 +260,6 @@ static unordered_set unary_ops = { >>> jt.sinh(a) jt.Var([ 0.3349012 -0.77276015 -0.9873369 2.9425898 ], dtype=float32) */ - // @pybind(asin, arcsin) "sinh", /**