/third_party/mindspore/tests/ut/python/ops/ |
D | test_math_ops_check.py | 85 …'desc_inputs': [Tensor(np.ones([3, 5]).astype(np.float32)), Tensor(np.ones([3, 4]).astype(np.float… 91 'desc_inputs': [Tensor(np.ones([1]).astype(np.bool_), mstype.bool_)], 97 'desc_inputs': [Tensor(np.ones([1]).astype(np.bool_), mstype.bool_)], 104 'desc_inputs': [Tensor(np.ones([2, 3, 5]).astype(np.float32))], 110 'desc_inputs': [Tensor(np.ones([2, 3, 5]).astype(np.float32))], 117 'desc_inputs': [Tensor(np.ones([2, 3, 5]).astype(np.float32))], 123 'desc_inputs': [Tensor(np.ones([2, 3, 5]).astype(np.float32))], 130 'desc_inputs': [Tensor(np.ones([2, 3, 5]).astype(np.bool_))], 136 'desc_inputs': [Tensor(np.ones([2, 3, 5]).astype(np.bool_))], 143 'desc_inputs': [Tensor(np.ones([2, 3, 5]).astype(np.float32))], [all …]
|
D | test_nn_ops_check.py | 67 'desc_inputs': [Tensor(np.ones([3, 4]).astype(np.float32))], 72 'desc_inputs': [Tensor(np.ones([3, 4]).astype(np.float32))], 83 'desc_inputs': [Tensor(np.ones([3, 4]).astype(np.float32))], 94 'desc_inputs': [Tensor(np.ones([3, 4]).astype(np.bool_))], 105 'desc_inputs': [Tensor(np.ones([3, 4]).astype(np.int32))], 116 'desc_inputs': [Tensor(np.ones([3, 4]).astype(np.int32))], 127 'desc_inputs': [Tensor(np.ones([3, 4]).astype(np.int32))], 144 …'desc_inputs': [Tensor(np.ones([5, 3]).astype(np.float32)), Tensor(np.ones([5, 3]).astype(np.float… 145 Tensor(np.ones([5, 3]).astype(np.float32)), None, None], 150 …'desc_inputs': [Tensor(np.ones([5, 3]).astype(np.float32)), Tensor(np.ones([3]).astype(np.float32)… [all …]
|
D | test_ops_check.py | 65 inp = Tensor(np.ones([1, 1, 32, 32]).astype(np.float32)) 84 inp = Tensor(np.ones([1, 1, 32, 32]).astype(np.float32)) 126 'desc_inputs': [Tensor(np.ones(shape=[1, 1, 6, 5]).astype(np.float32))]}), 129 'desc_inputs': [Tensor(np.ones(shape=[1, 1, 6, 5]).astype(np.float32))]}), 132 'desc_inputs': [Tensor(np.ones(shape=[1, 1, 6, 5]).astype(np.float32))]}), 135 'desc_inputs': [Tensor(np.ones(shape=[1, 1, 6, 5]).astype(np.float32))]}), 137 … 'block': nn.Conv2d(1, 6, 5, has_bias=True, bias_init=Tensor(np.ones([6]).astype(np.float32))), 138 'desc_inputs': [Tensor(np.ones(shape=[1, 1, 6, 5]).astype(np.float32))]}), 141 'desc_inputs': [Tensor(np.ones(shape=[1, 1, 6, 5]).astype(np.float32))]}), 144 'desc_inputs': [Tensor(np.ones(shape=[1, 1, 6, 5]).astype(np.float32))]}), [all …]
|
D | test_multitype_ops.py | 46 self.t1 = Tensor(np.ones([2, 1, 2, 2], np.float32)) 59 self.t1 = Tensor(np.ones([2, 1, 2, 2], np.float32)) 72 self.t1 = Tensor(np.ones([2, 1, 2, 2], np.float32)) 84 self.t1 = Tensor(np.ones([2, 1, 2, 2], np.float32)) 100 self.t1 = Tensor(np.ones([2, 1, 2, 2], np.float32)) 116 self.t1 = Tensor(np.ones([2, 1, 2, 2], np.float32)) 154 self.x1 = Tensor(np.ones([2, 1, 2,], np.float32)) 155 self.x2 = Tensor(np.ones([2, 1, 2, 2], np.float32)) 166 self.x1 = Tensor(np.ones([1, 2, 2, 1], np.float32)) 167 self.x2 = Tensor(np.ones([2, 1, 2, 2], np.float32)) [all …]
|
/third_party/skia/third_party/externals/icu/source/data/rbnf/ |
D | pl.txt | 60 "1000: tysi\u0105c[ >%%spellout-cardinal-masculine-genitive-ones>];", 61 …(cardinal,few{tysi\u0105ce}other{tysi\u0119cy})$[ >%%spellout-cardinal-masculine-genitive-ones>];", 64 "1000000000: miliard[ >%%spellout-cardinal-masculine-genitive-ones>];", 66 "1000000000000: bilion[ >%%spellout-cardinal-masculine-genitive-ones>];", 68 "1000000000000000: biliard[ >%%spellout-cardinal-masculine-genitive-ones>];", 94 "20: <%%spellout-cardinal-tens<[ >%%spellout-cardinal-feminine-ones>];", 95 "100: sto[ >%%spellout-cardinal-feminine-ones>];", 96 "200: dwie\u015Bcie[ >%%spellout-cardinal-feminine-ones>];", 97 "300: <%spellout-cardinal-feminine<sta[ >%%spellout-cardinal-feminine-ones>];", 98 "500: <%spellout-cardinal-feminine<set[ >%%spellout-cardinal-feminine-ones>];", [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/data/rbnf/ |
D | pl.txt | 59 "1000: tysi\u0105c[ >%%spellout-cardinal-masculine-genitive-ones>];", 60 …(cardinal,few{tysi\u0105ce}other{tysi\u0119cy})$[ >%%spellout-cardinal-masculine-genitive-ones>];", 63 "1000000000: miliard[ >%%spellout-cardinal-masculine-genitive-ones>];", 65 "1000000000000: bilion[ >%%spellout-cardinal-masculine-genitive-ones>];", 67 "1000000000000000: biliard[ >%%spellout-cardinal-masculine-genitive-ones>];", 93 "20: <%%spellout-cardinal-tens<[ >%%spellout-cardinal-feminine-ones>];", 94 "100: sto[ >%%spellout-cardinal-feminine-ones>];", 95 "200: dwie\u015Bcie[ >%%spellout-cardinal-feminine-ones>];", 96 "300: <%spellout-cardinal-feminine<sta[ >%%spellout-cardinal-feminine-ones>];", 97 "500: <%spellout-cardinal-feminine<set[ >%%spellout-cardinal-feminine-ones>];", [all …]
|
/third_party/icu/icu4c/source/data/rbnf/ |
D | pl.txt | 60 "1000: tysi\u0105c[ >%%spellout-cardinal-masculine-genitive-ones>];", 61 …(cardinal,few{tysi\u0105ce}other{tysi\u0119cy})$[ >%%spellout-cardinal-masculine-genitive-ones>];", 64 "1000000000: miliard[ >%%spellout-cardinal-masculine-genitive-ones>];", 66 "1000000000000: bilion[ >%%spellout-cardinal-masculine-genitive-ones>];", 68 "1000000000000000: biliard[ >%%spellout-cardinal-masculine-genitive-ones>];", 94 "20: <%%spellout-cardinal-tens<[ >%%spellout-cardinal-feminine-ones>];", 95 "100: sto[ >%%spellout-cardinal-feminine-ones>];", 96 "200: dwie\u015Bcie[ >%%spellout-cardinal-feminine-ones>];", 97 "300: <%spellout-cardinal-feminine<sta[ >%%spellout-cardinal-feminine-ones>];", 98 "500: <%spellout-cardinal-feminine<set[ >%%spellout-cardinal-feminine-ones>];", [all …]
|
/third_party/mindspore/tests/ut/python/nn/ |
D | test_transformer.py | 34 encoder_input_value = Tensor(np.ones((2, 20, 64)), dtype.float32) 35 encoder_input_mask = Tensor(np.ones((2, 20, 20)), dtype.float16) 51 encoder_input_value = Tensor(np.ones((2, 20, 64)), dtype.float32) 52 encoder_input_mask = Tensor(np.ones((2, 20, 20)), dtype.float16) 67 encoder_input_value = Tensor(np.ones((2, 20, 64)), dtype.float32) 68 encoder_input_mask = Tensor(np.ones((2, 20, 20)), dtype.float16) 83 encoder_input_value = Tensor(np.ones((2, 20, 64)), dtype.float32) 84 encoder_input_mask = Tensor(np.ones((2, 20, 20)), dtype.float16) 98 encoder_input_value = Tensor(np.ones((2, 20, 64)), dtype.float32) 99 encoder_input_mask = Tensor(np.ones((2, 20, 20)), dtype.float16) [all …]
|
/third_party/mesa3d/src/util/ |
D | u_atomic_test.c | 46 #define test_atomic_assign(type, ones) \ argument 50 p_atomic_set(&v, ones); \ 51 assert(v == ones && "p_atomic_set"); \ 54 assert(r == ones && "p_atomic_read"); \ 56 v = ones; \ 58 assert(v == ones && "p_atomic_cmpxchg"); \ 59 assert(r == ones && "p_atomic_cmpxchg"); \ 60 r = p_atomic_cmpxchg(&v, ones, 0); \ 62 assert(r == ones && "p_atomic_cmpxchg"); \ 69 #define test_atomic_8bits(type, ones) \ argument [all …]
|
/third_party/mindspore/tests/ut/python/pynative_mode/ |
D | test_bprop.py | 47 grads = bprop(Net(), Tensor(np.ones([2, 3]).astype(np.float32)), 48 Tensor(np.ones([3, 2]).astype(np.float32)), wrt=['inputs']) 53 …grads = bprop(Net(), Tensor(np.ones([2, 3]).astype(np.float32)), Tensor(np.ones([3, 2]).astype(np.… 54 grads_wrt_outputs=(Tensor(np.ones([2, 3]).astype(np.float32)), 55 Tensor(np.ones([2, 2]).astype(np.float32))), wrt=['inputs']) 60 …grads = bprop(Net(), Tensor(np.ones([2, 3]).astype(np.float32)), Tensor(np.ones([3, 2]).astype(np.… 61 grads_wrt_outputs=(Tensor(np.ones([2, 3]).astype(np.float32)), 62 Tensor(np.ones([2, 2]).astype(np.float32)))) 68 …grads = bprop(net, Tensor(np.ones([2, 3]).astype(np.float32)), Tensor(np.ones([3, 2]).astype(np.fl… 69 grads_wrt_outputs=(Tensor(np.ones([2, 3]).astype(np.float32)), [all …]
|
D | test_kw_and_kwarg.py | 44 x = Tensor(np.ones([3, 4, 5], np.float32)) 46 z = Tensor(np.ones([3, 4, 5], np.float64)) 52 assert (ret.asnumpy() == np.ones([3, 4, 5], np.float64) * 5).all() 73 x = Tensor(np.ones([1, 2, 3], np.int32)) 74 y = Tensor(np.ones([1, 2, 3], np.float32)) 75 z = Tensor(np.ones([1, 2, 3], np.float64)) 76 u = Tensor(np.ones([1, 2, 3], np.float16)) 77 v = Tensor(np.ones([1, 2, 3], np.int32)) 78 w = Tensor(np.ones([1, 2, 3], np.float64)) 79 sens = Tensor(np.ones([1, 2, 3], np.float64)) [all …]
|
/third_party/mindspore/tests/ut/python/pynative_mode/nn/ |
D | test_tensor_operation.py | 22 x = Tensor(np.ones([3, 3, 3, 3]).astype(np.float32)) 23 y = Tensor(np.ones([3, 3, 3, 3]).astype(np.float32)) 29 x = Tensor(np.ones([3, 3, 3, 3]).astype(np.float32)) 30 y = Tensor(np.ones([3, 3, 3, 3]).astype(np.float32)) 36 x = Tensor(np.ones([3, 3, 3, 3]).astype(np.float32)) 37 y = Tensor(np.ones([3, 3, 3, 3]).astype(np.float32)) 45 x = Tensor(np.ones([3, 3, 3, 3]).astype(np.float32)) 46 y = Tensor(np.ones([3, 3, 3, 3]).astype(np.float32)) 54 x = Tensor(np.ones([3, 3, 3, 3]).astype(np.float32)) 55 y = Tensor(np.ones([3, 3, 3, 3]).astype(np.float32)) [all …]
|
D | test_parameter_operation.py | 27 x = Parameter(Tensor(np.ones((3, 3)).astype(np.float32)), name="ref") 28 y = Tensor(np.ones((3, 3)).astype(np.float32)) 29 expect = np.ones((3, 3)).astype(np.float32) * 2 34 x = Parameter(Tensor(np.ones((3, 3)).astype(np.float32) * 2), name="ref") 35 y = Tensor(np.ones((3, 3)).astype(np.float32)) 36 expect = np.ones((3, 3)).astype(np.float32) 41 x = Parameter(Tensor(np.ones((3, 3)).astype(np.float32) * 2), name="ref") 42 y = Tensor(np.ones((3, 3)).astype(np.float32) * 2) 43 expect = np.ones((3, 3)).astype(np.float32) * 4 48 x = Parameter(Tensor(np.ones((3, 3)).astype(np.float32) * 8), name="ref") [all …]
|
/third_party/mindspore/tests/ut/python/ir/ |
D | test_tensor_py.py | 34 nparray = np.ones([2, 2], np.float32) 42 a = ms.Tensor(np.ones([3, 3], np.float32)) 43 b = ms.Tensor(np.ones([3, 3], np.float32)) 49 a = ms.Tensor(np.ones([2, 3])) 50 b = ms.Tensor(np.ones([2, 3])) 56 a = ms.Tensor(np.ones([3, 3])) 57 b = ms.Tensor(np.ones([3, 3])) 62 arr = np.ones((1, 6)) 68 arr = np.ones((1, 6)) 74 arr = np.ones((1, 2, 3)) [all …]
|
/third_party/mindspore/tests/ut/python/parallel/ |
D | test_gather_v2.py | 56 self.index = Tensor(np.ones(shape), dtype=ms.int32) 72 x = Tensor(np.ones([64, 64]), dtype=ms.float32) 73 y = Tensor(np.ones([64, 64, 64]), dtype=ms.float32) 85 x = Tensor(np.ones([64, 64]), dtype=ms.float32) 86 y = Tensor(np.ones([64, 64, 64]), dtype=ms.float32) 98 x = Tensor(np.ones([64, 64]), dtype=ms.float32) 99 y = Tensor(np.ones([64, 64, 64]), dtype=ms.float32) 111 x = Tensor(np.ones([64, 64]), dtype=ms.float32) 112 y = Tensor(np.ones([64, 64, 64]), dtype=ms.float32) 124 x = Tensor(np.ones([64, 32]), dtype=ms.float32) [all …]
|
D | test_sparse_gather_v2.py | 57 self.index = Tensor(np.ones(shape), dtype=ms.int32) 73 x = Tensor(np.ones([64, 64]), dtype=ms.float32) 74 y = Tensor(np.ones([64, 64, 64]), dtype=ms.float32) 86 x = Tensor(np.ones([64, 64]), dtype=ms.float32) 87 y = Tensor(np.ones([64, 64, 64]), dtype=ms.float32) 99 x = Tensor(np.ones([64, 64]), dtype=ms.float32) 100 y = Tensor(np.ones([64, 64, 64]), dtype=ms.float32) 112 x = Tensor(np.ones([64, 64]), dtype=ms.float32) 113 y = Tensor(np.ones([64, 64, 64]), dtype=ms.float32) 125 x = Tensor(np.ones([64, 32]), dtype=ms.float32) [all …]
|
D | test_comparison_function_info.py | 73 x = Tensor(np.ones([128, 32]), dtype=ms.float32) 74 y = Tensor(np.ones([32, 64]), dtype=ms.float32) 75 b = Tensor(np.ones([128, 64]), dtype=ms.float32) 96 x = Tensor(np.ones([128, 32]), dtype=ms.float32) 97 y = Tensor(np.ones([32, 64]), dtype=ms.float32) 98 b = Tensor(np.ones([128, 64]), dtype=ms.float32) 120 x = Tensor(np.ones([64, 32]), dtype=ms.float32) 121 y = Tensor(np.ones([32, 64]), dtype=ms.float32) 122 b = Tensor(np.ones([64, 64]), dtype=ms.float32) 144 x = Tensor(np.ones([64, 32]), dtype=ms.float32) [all …]
|
D | test_unsortedsegmentsum.py | 78 x = Tensor(np.ones(8), ms.float32) 79 y = Tensor(np.ones(8), ms.int32) 88 x = Tensor(np.ones(8), ms.float32) 89 y = Tensor(np.ones(8), ms.int32) 98 x = Tensor(np.ones((4, 8)), ms.float32) 108 x = Tensor(np.ones((4, 4, 8)), ms.float32) 109 y = Tensor(np.ones((4, 4)), ms.int32) 118 x = Tensor(np.ones((4, 4, 8)), ms.float32) 119 y = Tensor(np.ones((4, 4)), ms.int32) 129 x = Tensor(np.ones((4, 8)), ms.float32) [all …]
|
D | test_arithmetic.py | 73 x = Tensor(np.ones([64, 32]), dtype=ms.float32) 74 y = Tensor(np.ones([32, 64]), dtype=ms.float32) 75 b = Tensor(np.ones([64, 64]), dtype=ms.float32) 97 x = Tensor(np.ones([64, 32]), dtype=ms.float32) 98 y = Tensor(np.ones([32, 64]), dtype=ms.float32) 99 b = Tensor(np.ones([64, 64]), dtype=ms.float32) 121 x = Tensor(np.ones([64, 32]), dtype=ms.float32) 122 y = Tensor(np.ones([32, 64]), dtype=ms.float32) 123 b = Tensor(np.ones([64, 64]), dtype=ms.float32) 144 x = Tensor(np.ones([64, 32]), dtype=ms.float32) [all …]
|
D | test_parallel_transformer.py | 109 encoder_input_value = Tensor(np.ones((2, 20, 64)), mstype.float32) 110 encoder_input_mask = Tensor(np.ones((2, 20, 20)), mstype.float16) 111 decoder_input_value = Tensor(np.ones((2, 10, 64)), mstype.float32) 112 decoder_input_mask = Tensor(np.ones((2, 10, 10)), mstype.float16) 113 memory_mask = Tensor(np.ones((2, 10, 20)), mstype.float16) 117 label = Tensor(np.ones((2 * seq,)), mstype.int32) 118 input_mask = Tensor(np.ones((2 * seq,)), mstype.float32) 145 encoder_input_value = Tensor(np.ones((2, 20, 64)), mstype.float32) 146 encoder_input_mask = Tensor(np.ones((2, 20, 20)), mstype.float16) 147 decoder_input_value = Tensor(np.ones((2, 10, 64)), mstype.float32) [all …]
|
D | test_unsortedsegmentmax.py | 79 x = Tensor(np.ones(8), ms.float32) 80 y = Tensor(np.ones(8), ms.int32) 89 x = Tensor(np.ones(8), ms.float32) 90 y = Tensor(np.ones(8), ms.int32) 99 x = Tensor(np.ones((4, 8)), ms.float32) 109 x = Tensor(np.ones((4, 8)), ms.float32) 110 y = Tensor(np.ones(4), ms.int32) 119 x = Tensor(np.ones((4, 8, 8)), ms.float32) 120 y = Tensor(np.ones(4), ms.int32) 129 x = Tensor(np.ones((4, 8)), ms.float32) [all …]
|
D | test_unsortedsegmentmin.py | 79 x = Tensor(np.ones(8), ms.float32) 80 y = Tensor(np.ones(8), ms.int32) 89 x = Tensor(np.ones(8), ms.float32) 90 y = Tensor(np.ones(8), ms.int32) 99 x = Tensor(np.ones((4, 8)), ms.float32) 109 x = Tensor(np.ones((4, 8)), ms.float32) 110 y = Tensor(np.ones(4), ms.int32) 119 x = Tensor(np.ones((4, 8, 8)), ms.float32) 120 y = Tensor(np.ones(4), ms.int32) 129 x = Tensor(np.ones((4, 8)), ms.float32) [all …]
|
/third_party/mindspore/tests/st/ops/gpu/ |
D | test_resize_bilinear_op.py | 54 error = np.ones(shape=[9, 9]) * 1.0e-6 62 error = np.ones(shape=[1, 1]) * 1.0e-6 71 error = np.ones(shape=[1, 6]) * 1.0e-6 85 error = np.ones(shape=[6, 1]) * 1.0e-6 94 error = np.ones(shape=[1, 3]) * 1.0e-6 107 error = np.ones(shape=[6, 3]) * 1.0e-6 118 error = np.ones(shape=[3, 1]) * 1.0e-6 128 error = np.ones(shape=[3, 6]) * 1.0e-6 139 error = np.ones(shape=[3, 3]) * 1.0e-6 167 error = np.ones(shape=[9, 9]) * 1.0e-6 [all …]
|
/third_party/mindspore/tests/st/ops/cpu/ |
D | test_resize_bilinear_op.py | 50 error = np.ones(shape=[9, 9]) * 1.0e-6 58 error = np.ones(shape=[1, 1]) * 1.0e-6 67 error = np.ones(shape=[1, 6]) * 1.0e-6 81 error = np.ones(shape=[6, 1]) * 1.0e-6 90 error = np.ones(shape=[1, 3]) * 1.0e-6 103 error = np.ones(shape=[6, 3]) * 1.0e-6 114 error = np.ones(shape=[3, 1]) * 1.0e-6 124 error = np.ones(shape=[3, 6]) * 1.0e-6 135 error = np.ones(shape=[3, 3]) * 1.0e-6 160 error = np.ones(shape=[9, 9]) * 1.0e-6 [all …]
|
/third_party/mindspore/tests/ut/python/pipeline/parse/ |
D | test_ms_function_pass_non_tensor_inputs.py | 40 tensor_x = Tensor(np.ones((2, 3, 4), np.float32)) 41 tensor_y = Tensor(np.ones((2, 3, 4), np.float32) * 2) 42 p = (Tensor(np.ones((2, 3, 4), np.float32) * 3), Tensor(np.ones((2, 3, 4), np.float32) * 4)) 43 q = [Tensor(np.ones((2, 3, 4), np.float32) * 5), Tensor(np.ones((2, 3, 4), np.float32) * 6)] 44 …w = {"x": Tensor(np.ones((2, 3, 4), np.float32) * 7), "y": Tensor(np.ones((2, 3, 4), np.float32) *… 56 tensor_x = Tensor(np.ones((2, 3, 4, 5), np.float32)) 58 tensor_y = Tensor(np.ones((4, 5), np.float32) * 2)
|