/third_party/mindspore/tests/st/ops/cpu/ |
D | test_arithmetic_self_op.py | 87 expect_output = np.array([1, 4, 9]).astype(np.int16) 89 assert np.all(output.asnumpy() == expect_output) 94 expect_output = np.array([1, 4, 9]).astype(np.int32) 96 assert np.all(output.asnumpy() == expect_output) 101 expect_output = np.array([1, 4, 9]).astype(np.int64) 103 assert np.all(output.asnumpy() == expect_output) 108 expect_output = np.array([1, 4, 9]).astype(np.float16) 110 assert np.all(output.asnumpy() == expect_output) 115 expect_output = np.array([1, 4, 9]).astype(np.float32) 117 assert np.all(output.asnumpy() == expect_output) [all …]
|
D | test_bias_add.py | 44 expect_output = x 47 expect_output[i][j] = x[i][j] + b[j] 49 …assert np.all(output.asnumpy() == expect_output), "bias_add execute failed, please check current c… 61 expect_output = x 64 expect_output[i][j] = x[i][j] + b[j] 66 …assert np.all(output.asnumpy() == expect_output), "bias_add execute failed, please check current c… 78 expect_output = x 81 expect_output[i][j] = x[i][j] + b[j] 83 …assert np.all(output.asnumpy() == expect_output), "bias_add execute failed, please check current c… 94 expect_output = x [all …]
|
D | test_bias_add_grad.py | 42 expect_output = np.array([2., 2., 2.]).astype(np.float32) 44 …assert np.all(output.asnumpy() == expect_output), "bias_add_grad execute failed, please check curr… 54 expect_output = np.array([32., 32., 32.]).astype(np.float32) 56 …assert np.all(output.asnumpy() == expect_output), "bias_add_grad execute failed, please check curr… 65 expect_output = np.array([64., 64., 64.]).astype(np.float32) 67 …assert np.all(output.asnumpy() == expect_output), "bias_add_grad execute failed, please check curr…
|
D | test_batchnorm_op.py | 55 expect_output = np.array([[[[-0.6059, 0.3118, 0.3118, 1.2294], 75 diff = output.asnumpy() - expect_output 95 expect_output = np.array([[[[-0.69126546, -0.32903028, 1.9651246, -0.88445705], 116 diff = output[0].asnumpy() - expect_output
|
D | test_cpu_type.py | 33 expect_output = np.ones([2, 2]).astype(np.float16) * 3 34 assert np.all(output.asnumpy() == expect_output)
|
D | test_arithmetic_op.py | 80 expect_output = x - y 81 assert np.all(output.asnumpy() == expect_output)
|
/third_party/mindspore/tests/st/nccl/ |
D | test_nccl_sync_batch_norm_op.py | 80 expect_output = expect_output_fwd.copy().astype(np.float32) 86 diff = output.asnumpy() - expect_output 94 expect_output = expect_output_fwd.copy().astype(np.float16) 100 diff = output.asnumpy() - expect_output 108 expect_output = expect_output_back.copy().astype(np.float32) 116 diff = output[0].asnumpy() - expect_output 124 expect_output = expect_output_back.copy().astype(np.float16) 132 diff = output[0].asnumpy() - expect_output
|
D | test_nccl_send_recv_op.py | 63 expect_output = np.ones([3, 3, 3, 3]).astype(np.float32) * 0.01 * (rank-size//2 + 1) 67 diff = abs(output.asnumpy() - expect_output) 70 assert expect_output.shape == output.shape
|
/third_party/mindspore/tests/st/ops/gpu/ |
D | test_adaptive_avg_pool2d_op.py | 93 expect_output = np.array([[[3.0, 4.0], [6.0, 7.0]], 97 assert (output.asnumpy() == expect_output).all 125 expect_output = np.array([[[3.0, 4.0], [6.0, 7.0]], 129 assert (output.asnumpy() == expect_output).all 157 expect_output = np.array([[[3.0, 4.0], [6.0, 7.0]], 161 assert (output.asnumpy() == expect_output).all
|
D | test_batchnorm_op.py | 57 expect_output = np.array([[[[-0.6059, 0.3118, 0.3118, 1.2294], 78 diff = output.asnumpy() - expect_output 87 diff = output.asnumpy() - expect_output 114 expect_output = np.array([[[[-0.69126546, -0.32903028, 1.9651246, -0.88445705], 135 diff = output[0].asnumpy() - expect_output 148 expect_output = np.array([[[[3.707105, 5.121315, 5.121315, 6.535525], 170 diff = output.asnumpy() - expect_output 179 diff = output.asnumpy() - expect_output 188 expect_output = np.array([[[[-0.3224156, -0.3840524], [1.1337637, -1.0998858]], 204 assert np.allclose(ms_out_grad_np[0].asnumpy(), expect_output)
|
D | test_maxpool_with_argmax_gpu_op.py | 53 expect_output = np.array([[[[5, 6, 7, 7], 84 assert output_tensor.shape == expect_output.shape 87 error = np.ones(shape=expect_output.shape) * 1.0e-5 88 diff_output = output_tensor.asnumpy() - expect_output
|
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/ |
D | activation_fp32_test.cc | 136 std::vector<float> expect_output = {-0, -0.33333334, -0.33333334, 0, 0.6666667, 5, 6, 7}; in TEST_F() local 137 ASSERT_EQ(0, CompareOutputData(output.data(), expect_output.data(), 8, 0.00001)); in TEST_F() 183 std::vector<float> expect_output = {-1.0, -1.0, -0.5, 0.0, 0.5, 1.0, 1.0, 1.0}; in TEST_F() local 184 ASSERT_EQ(0, CompareOutputData(output.data(), expect_output.data(), 8, 0.00001)); in TEST_F() 230 std::vector<float> expect_output = {-2.0, -2.0, -1.0, 0.0, 1.0, 2.0, 2.0, 2.0}; in TEST_F() local 231 ASSERT_EQ(0, CompareOutputData(output.data(), expect_output.data(), 8, 0.00001)); in TEST_F() 274 std::vector<float> expect_output = {1.3132616, 2.1269281, 3.0485871, 4.0181499, 5.0067153, in TEST_F() local 277 ASSERT_EQ(0, CompareOutputData(output.data(), expect_output.data(), 14, 0.00001)); in TEST_F()
|
/third_party/mindspore/tests/st/ops/ascend/ |
D | test_biasAddGrad.py | 41 expect_output = np.array([32., 32., 32.]).astype(np.float32) variable 42 assert np.all(output.asnumpy() == expect_output), "bias_add_grad execute failed, please check curre…
|
/third_party/mindspore/tests/st/nontask_sink/ |
D | test_allreduce.py | 53 expect_output = [[256, 256, 256, 256], [256, 256, 256, 256], [256, 256, 256, 256]] 55 assert np.allclose(output.asnumpy(), expect_output)
|
/third_party/mindspore/tests/st/pynative/data_parallel/ |
D | test_pynative_nccl_allreduce.py | 53 expect_output = [[256, 256, 256, 256], [256, 256, 256, 256], [256, 256, 256, 256]] 55 assert np.allclose(output.asnumpy(), expect_output)
|
D | test_pynative_hccl_allreduce.py | 92 expect_output = [[256, 256, 256, 256], [256, 256, 256, 256], [256, 256, 256, 256]] 95 assert np.allclose(output.asnumpy(), expect_output)
|
/third_party/boost/boost/geometry/algorithms/detail/intersection/ |
D | multi.hpp | 444 , detail::expect_output 482 , detail::expect_output 519 , detail::expect_output 559 , detail::expect_output
|
D | areal_areal.hpp | 88 geometry::detail::expect_output in apply()
|
/third_party/boost/boost/geometry/algorithms/ |
D | sym_difference.hpp | 335 : detail::expect_output<PointLike1, PointLike2, GeometryOut, point_tag> 355 : detail::expect_output<Linear1, Linear2, GeometryOut, linestring_tag> 375 : detail::expect_output<Areal1, Areal2, GeometryOut, polygon_tag> 397 : detail::expect_output
|
D | union.hpp | 169 typedef detail::expect_output 286 typedef detail::expect_output 296 typedef detail::expect_output
|
D | difference.hpp | 87 typedef detail::expect_output
|
/third_party/boost/boost/geometry/algorithms/detail/ |
D | tupled_output.hpp | 643 struct expect_output struct 654 struct expect_output<Geometry1, Geometry2, TupledOut, Tag1, Tag2, void> struct 664 struct expect_output<Geometry1, Geometry2, TupledOut, Tag1, void, void> struct
|
/third_party/boost/boost/geometry/algorithms/detail/overlay/ |
D | intersection_insert.hpp | 935 : detail::expect_output 1060 : detail::expect_output<PointLike1, PointLike2, TupledOut, point_tag>
|