/external/tensorflow/tensorflow/python/autograph/pyct/common_transformers/ |
D | anf_test.py | 121 def expected_result(x, y, z): function 126 self.assert_body_anfs_as_expected(expected_result, test_function) 135 def expected_result(a, b, c, e, f, g): function 143 self.assert_body_anfs_as_expected(expected_result, test_function) 150 def expected_result(b, c, d, e): function 157 self.assert_body_anfs_as_expected(expected_result, test_function) 164 def expected_result(call_something, a, b, y, z, c, d, e, f, g, h, i): function 173 self.assert_body_anfs_as_expected(expected_result, test_function) 181 def expected_result(a, b, c): function 189 self.assert_body_anfs_as_expected(expected_result, test_function) [all …]
|
/external/tensorflow/tensorflow/contrib/nearest_neighbor/kernels/ |
D | hyperplane_lsh_probes_test.cc | 42 const std::vector<std::pair<uint32, int_fast32_t>>& expected_result) { in CheckSequenceMultipleTables() argument 45 for (int ii = 0; ii < expected_result.size(); ++ii) { in CheckSequenceMultipleTables() 47 EXPECT_EQ(expected_result[ii].first, cur_probe); in CheckSequenceMultipleTables() 48 EXPECT_EQ(expected_result[ii].second, cur_table); in CheckSequenceMultipleTables() 57 std::vector<std::pair<uint32, int_fast32_t>> expected_result = {{1, 0}, in TEST() local 59 multiprobe.SetupProbing(hash_vector, expected_result.size()); in TEST() 60 CheckSequenceMultipleTables(&multiprobe, expected_result); in TEST() 69 std::vector<uint32> expected_result = {0, 1, 2, 4, 3}; in TEST() local 70 multiprobe.SetupProbing(hash_vector, expected_result.size()); in TEST() 71 CheckSequenceSingleTable(&multiprobe, expected_result); in TEST() [all …]
|
/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
D | matrix_unittest.cc | 32 Matrix<float> expected_result(*kValuesExpected, kNumRows, kNumCols); in TEST() local 36 MatrixTestHelpers::ValidateMatrixEquality(expected_result, actual_result); in TEST() 56 Matrix<int> expected_result(*kValuesExpected, kNumRowsLeft, kNumColsRight); in TEST() local 60 MatrixTestHelpers::ValidateMatrixEquality(expected_result, actual_result); in TEST() 77 Matrix<float> expected_result( in TEST() local 82 MatrixTestHelpers::ValidateMatrixEqualityFloat(expected_result, in TEST() 98 Matrix<int> expected_result(*kValuesExpected, kNumRows, kNumCols); in TEST() local 102 MatrixTestHelpers::ValidateMatrixEquality(expected_result, actual_result); in TEST() 120 Matrix<float> expected_result(*kValuesExpected, kNumRows, kNumCols); in TEST() local 124 MatrixTestHelpers::ValidateMatrixEqualityFloat(expected_result, in TEST() [all …]
|
D | complex_matrix_unittest.cc | 34 ComplexMatrix<float> expected_result(*kValuesExpected, kNumRows, kNumCols); in TEST() local 38 MatrixTestHelpers::ValidateMatrixEqualityComplexFloat(expected_result, in TEST() 66 ComplexMatrix<float> expected_result( in TEST() local 71 MatrixTestHelpers::ValidateMatrixEqualityComplexFloat(expected_result, in TEST() 90 ComplexMatrix<float> expected_result(*kValuesExpected, kNumRows, kNumCols); in TEST() local 94 MatrixTestHelpers::ValidateMatrixEqualityComplexFloat(expected_result, in TEST()
|
/external/vboot_reference/tests/ |
D | test_common.c | 21 int TEST_EQ(int result, int expected_result, const char* testname) { in TEST_EQ() argument 22 if (result == expected_result) { in TEST_EQ() 28 expected_result, expected_result, result, result); in TEST_EQ() 47 int TEST_PTR_EQ(const void* result, const void* expected_result, in TEST_PTR_EQ() argument 49 if (result == expected_result) { in TEST_PTR_EQ() 54 fprintf(stderr, " Expected: 0x%lx, got: 0x%lx\n", (long)expected_result, in TEST_PTR_EQ() 75 int TEST_STR_EQ(const char* result, const char* expected_result, in TEST_STR_EQ() argument 78 if (!result || !expected_result) { in TEST_STR_EQ() 83 } else if (!strcmp(result, expected_result)) { in TEST_STR_EQ() 88 fprintf(stderr, " Expected: \"%s\", got: \"%s\"\n", expected_result, in TEST_STR_EQ()
|
D | test_common.h | 14 int TEST_EQ(int result, int expected_result, const char* testname); 23 int TEST_PTR_EQ(const void* result, const void* expected_result, 29 int TEST_PTR_NEQ(const void* result, const void* expected_result, 34 int TEST_STR_EQ(const char* result, const char* expected_result,
|
/external/autotest/client/common_lib/ |
D | test_unittest.py | 207 expected_result = {"Test": {"summary": {"units": "ms", "type": "scalar", 209 self.assertDictEqual(expected_result, json.loads(f.read())) 219 expected_result = {"Test": {"summary": {"units": "ms", 222 self.assertDictEqual(expected_result, json.loads(f.read())) 234 expected_result = {"Test": {"summary": {"units": "ms", 237 self.assertDictEqual(expected_result, json.loads(f.read())) 247 expected_result = {"Test": {"summary": {"units": "ms", 250 self.assertDictEqual(expected_result, json.loads(f.read())) 260 expected_result = {"Test": {"summary": {"units": "ms", 264 self.assertDictEqual(expected_result, json.loads(f.read())) [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | decode_raw_op_test.py | 87 expected_result = np.matrix([[1, -2, -3, 4]], dtype="<f2") 88 result = decode.eval(feed_dict={in_bytes: [expected_result.tostring()]}) 90 self.assertAllEqual(expected_result, result) 99 expected_result = np.matrix([[1 + 1j, 2 - 2j, -3 + 3j, -4 - 4j]], 101 result = decode.eval(feed_dict={in_bytes: [expected_result.tostring()]}) 103 self.assertAllEqual(expected_result, result) 112 expected_result = np.matrix([[1 + 1j, 2 - 2j, -3 + 3j, -4 - 4j]], 114 result = decode.eval(feed_dict={in_bytes: [expected_result.tostring()]}) 116 self.assertAllEqual(expected_result, result)
|
D | batch_gather_op_test.py | 54 expected_result = np.array([3, 7]) 55 np_val = self._buildParams(expected_result, dtype) 70 expected_result = np.array([[3], [15]]) 71 np_val = self._buildParams(expected_result, dtype) 86 expected_result = np.array([[[2, 0], [7, 5]], [[10, 8], [11, 15]]]) 87 np_val = self._buildParams(expected_result, dtype)
|
/external/tensorflow/tensorflow/python/kernel_tests/boosted_trees/ |
D | training_ops_test.py | 94 expected_result = """ 141 self.assertProtoEquals(expected_result, tree_ensemble) 170 expected_result = """ 185 self.assertProtoEquals(expected_result, tree_ensemble) 287 expected_result = """ 370 self.assertProtoEquals(expected_result, tree_ensemble) 456 expected_result = """ 520 self.assertProtoEquals(expected_result, tree_ensemble) 622 expected_result = """ 677 self.assertProtoEquals(expected_result, tree_ensemble) [all …]
|
/external/autotest/server/site_tests/firmware_Cr50GetName/ |
D | firmware_Cr50GetName.py | 80 expected_result = [] 87 expected_result.append('board ID is erased using prod image') 94 expected_result.append("board_id: '%s' board_flags: '0x%s', extension: " 96 expected_result.append('hashing /opt/google/cr50/firmware/cr50.bin.%s' % 98 return '(%s)' % '\n.*'.join(expected_result)
|
/external/tensorflow/tensorflow/contrib/boosted_trees/python/kernel_tests/ |
D | training_ops_test.py | 195 expected_result = """ 222 self.assertProtoEquals(expected_result, tree_ensemble_config) 244 expected_result = """ 271 self.assertProtoEquals(expected_result, tree_ensemble_config) 363 expected_result = """ 410 self.assertProtoEquals(expected_result, tree_ensemble_config) 477 expected_result = """ 523 self.assertProtoEquals(expected_result, tree_ensemble_config) 631 expected_result = """ 714 self.assertProtoEquals(expected_result, tree_ensemble_config) [all …]
|
/external/autotest/client/bin/ |
D | fsinfo_unittest.py | 104 expected_result = {'-q': None, 110 self.assertEqual(expected_result, result) 116 expected_result = ['a', 'b', 'd', 'g', 'h', 'i'] 118 self.assertEqual(expected_result, result)
|
/external/tensorflow/tensorflow/contrib/timeseries/python/timeseries/ |
D | math_utils_test.py | 93 expected_result = numpy.dot(left, right) 95 self.assertAllClose(expected_result, 98 self.assertAllClose(expected_result, 102 self.assertAllClose(expected_result, 106 self.assertAllClose(expected_result, 115 expected_result = numpy.transpose(numpy.dot(right_transpose, left.T), 118 self.assertAllClose(expected_result, 121 self.assertAllClose(expected_result, 125 self.assertAllClose(expected_result, 129 self.assertAllClose(expected_result,
|
/external/compiler-rt/test/builtins/Unit/ |
D | udivmodsi4_test.c | 22 su_int expected_result, su_int expected_rem) in test__udivmodsi4() argument 26 if (result != expected_result) { in test__udivmodsi4() 28 a, b, result, expected_result); in test__udivmodsi4()
|
D | divmodsi4_test.c | 23 si_int expected_result, si_int expected_rem) in test__divmodsi4() argument 27 if (result != expected_result) { in test__divmodsi4() 29 a, b, result, expected_result); in test__divmodsi4()
|
/external/autotest/client/site_tests/hardware_DiskFirmwareUpgrade/ |
D | hardware_DiskFirmwareUpgrade.py | 20 expected_result=0, argument 45 if fw_upgrade.exit_status != expected_result: 48 expected_result, fw_upgrade.exit_status))
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl28.c | 106 int lc, expected_result = -1; in main() local 117 expected_result = -1; in main() 133 if (TEST_RETURN == expected_result) { in main()
|
D | fcntl27.c | 109 int lc, expected_result = -1; in main() local 120 expected_result = -1; in main() 136 if (TEST_RETURN == expected_result) { in main()
|
/external/toolchain-utils/binary_search_tool/test/ |
D | binary_search_tool_tester.py | 99 expected_result = common.ReadObjectsFile() 102 actual_result = [0] * len(expected_result) 106 self.assertEqual(actual_result, expected_result) 360 expected_result = common.ReadObjectsFile() 363 actual_result = [0] * len(expected_result) 367 self.assertEqual(actual_result, expected_result) 415 expected_result = common.ReadObjectsFile() 418 actual_result = [0] * len(expected_result) 422 self.assertEqual(actual_result, expected_result)
|
/external/mesa3d/src/intel/compiler/ |
D | test_eu_validate.cpp | 444 bool expected_result; in TEST_P() member 462 EXPECT_EQ(vstride[i].expected_result, validate(p)); in TEST_P() 471 EXPECT_EQ(vstride[i].expected_result, validate(p)); in TEST_P() 774 bool expected_result; in TEST_P() member 808 EXPECT_EQ(move[i].expected_result, validate(p)); in TEST_P() 863 bool expected_result; in TEST_P() member 888 EXPECT_EQ(move[i].expected_result, validate(p)); in TEST_P() 900 bool expected_result; in TEST_P() member 929 EXPECT_EQ(move[i].expected_result, validate(p)); in TEST_P() 951 bool expected_result; in TEST_P() member [all …]
|
/external/google-breakpad/src/processor/ |
D | range_map_unittest.cc | 156 bool expected_result = false; // This is correct for tests not stored. in RetrieveTest() local 159 expected_result = true; // test should always succeed. in RetrieveTest() 161 expected_result = side; // should fail low and succeed high. in RetrieveTest() 163 expected_result = !side; // should succeed low and fail high. in RetrieveTest() 175 if (observed_result != expected_result) { in RetrieveTest() 182 expected_result ? "true" : "false", in RetrieveTest()
|
/external/tensorflow/tensorflow/python/ops/ |
D | special_math_ops_test.py | 141 expected_result = constant_op.constant(-np.inf, shape=()) 143 self.assertAllEqual(self.evaluate(expected_result), 145 self.assertEqual(expected_result.get_shape(), lbeta_x.get_shape()) 154 expected_result = constant_op.constant(-np.inf, shape=[batch_size]) 156 self.assertAllEqual(self.evaluate(expected_result), 158 self.assertEqual(expected_result.get_shape(), lbeta_x.get_shape()) 168 expected_result = constant_op.constant([], shape=[batch_size]) 170 self.assertAllEqual(self.evaluate(expected_result), 172 self.assertEqual(expected_result.get_shape(), lbeta_x.get_shape())
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | compilation_cache_test.cc | 43 float expected_result, bool expect_cache_hit) { in ExecuteComputationR0F32() argument 52 LiteralUtil::CreateR0<float>(expected_result), result, error_spec_)); in ExecuteComputationR0F32() 59 std::initializer_list<std::initializer_list<float>> expected_result, in ExecuteComputationR2F32() argument 68 LiteralUtil::CreateR2<float>(expected_result), result, error_spec_)); in ExecuteComputationR2F32()
|
/external/grpc-grpc/third_party/nanopb/tests/intsizes/ |
D | intsizes_unittests.c | 15 int64, uint64, sint64, expected_result) \ argument 43 TEST(pb_decode(&s, IntSizes_fields, &msg2) == expected_result); \ 44 if (expected_result) \ 61 if (expected_result) \
|