mirror of https://github.com/Jittor/Jittor
polish test error
This commit is contained in:
parent
cd3319edf4
commit
4af7280342
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -260,7 +260,6 @@ static unordered_set<string> unary_ops = {
|
|||
>>> jt.sinh(a)
|
||||
jt.Var([ 0.3349012 -0.77276015 -0.9873369 2.9425898 ], dtype=float32)
|
||||
*/
|
||||
// @pybind(asin, arcsin)
|
||||
"sinh",
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue