Home
last modified time | relevance | path

Searched refs:expected_result (Results 1 – 25 of 81) sorted by relevance

1234

/external/tensorflow/tensorflow/contrib/nearest_neighbor/kernels/
Dhyperplane_lsh_probes_test.cc42 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/
Dmatrix_unittest.cc32 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 …]
Dcomplex_matrix_unittest.cc34 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/
Dtest_common.c21 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()
Dtest_common.h14 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/
Dtest_unittest.py303 expected_result = {"Test": {"summary": {"units": "ms", "type": "scalar",
305 self.assertDictEqual(expected_result, json.loads(f.read()))
315 expected_result = {"Test": {"summary": {"units": "ms",
318 self.assertDictEqual(expected_result, json.loads(f.read()))
330 expected_result = {"Test": {"summary": {"units": "ms",
333 self.assertDictEqual(expected_result, json.loads(f.read()))
343 expected_result = {"Test": {"summary": {"units": "ms",
346 self.assertDictEqual(expected_result, json.loads(f.read()))
356 expected_result = {"Test": {"summary": {"units": "ms",
360 self.assertDictEqual(expected_result, json.loads(f.read()))
[all …]
/external/tensorflow/tensorflow/contrib/kfac/python/kernel_tests/
Dfisher_blocks_test.py298 expected_result = self.fisherApprox().dot(self.w.flatten())
299 expected_result = expected_result.reshape(
302 self.assertAllClose(expected_result, result)
309 expected_result = np.linalg.inv(self.fisherApprox()).dot(self.w.flatten())
310 expected_result = expected_result.reshape(
313 self.assertAllClose(expected_result, result)
331 expected_result = self.fisherApprox(True).dot(
333 expected_result = expected_result.reshape(
335 expected_result = (expected_result[:-1], expected_result[-1])
338 self.assertAllClose(expected_result[0], result[0])
[all …]
/external/autotest/server/site_tests/firmware_Cr50GetName/
Dfirmware_Cr50GetName.py80 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/valgrind/none/tests/s390x/
Dpopcnt.c5 static void check_popcnt(uint64_t in, uint64_t expected_result, in check_popcnt() argument
8 uint64_t out = ~expected_result; in check_popcnt()
18 in, out, (out == expected_result ? " " : "ERR"), in check_popcnt()
/external/autotest/client/bin/
Dfsinfo_unittest.py104 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/
Dmath_utils_test.py93 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/
Dudivmodsi4_test.c22 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()
Ddivmodsi4_test.c23 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/toolchain-utils/binary_search_tool/test/
Dbinary_search_tool_tester.py97 expected_result = common.ReadObjectsFile()
100 actual_result = [0] * len(expected_result)
104 self.assertEqual(actual_result, expected_result)
340 expected_result = common.ReadObjectsFile()
343 actual_result = [0] * len(expected_result)
347 self.assertEqual(actual_result, expected_result)
395 expected_result = common.ReadObjectsFile()
398 actual_result = [0] * len(expected_result)
402 self.assertEqual(actual_result, expected_result)
/external/tensorflow/tensorflow/python/ops/
Dspecial_math_ops_test.py124 expected_result = constant_op.constant(-np.inf, shape=())
126 self.assertAllEqual(expected_result.eval(), lbeta_x.eval())
127 self.assertEqual(expected_result.get_shape(), lbeta_x.get_shape())
135 expected_result = constant_op.constant(-np.inf, shape=[batch_size])
137 self.assertAllEqual(expected_result.eval(), lbeta_x.eval())
138 self.assertEqual(expected_result.get_shape(), lbeta_x.get_shape())
147 expected_result = constant_op.constant([], shape=[batch_size])
149 self.assertAllEqual(expected_result.eval(), lbeta_x.eval())
150 self.assertEqual(expected_result.get_shape(), lbeta_x.get_shape())
/external/autotest/client/site_tests/hardware_DiskFirmwareUpgrade/
Dhardware_DiskFirmwareUpgrade.py20 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/
Dfcntl28.c106 int lc, expected_result = -1; in main() local
117 expected_result = -1; in main()
133 if (TEST_RETURN == expected_result) { in main()
Dfcntl27.c109 int lc, expected_result = -1; in main() local
120 expected_result = -1; in main()
136 if (TEST_RETURN == expected_result) { in main()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dexhaustive_f32_elementwise_op_test.cc59 std::vector<float> expected_result; in ExhaustivelyTestF32Op() local
60 expected_result.reserve(input_size); in ExhaustivelyTestF32Op()
62 expected_result.push_back(evaluate_op(input_literal->Get<float>({i}))); in ExhaustivelyTestF32Op()
65 ComputeAndCompareR1<float>(&builder, expected_result, {input_data.get()}, in ExhaustivelyTestF32Op()
Dcompilation_cache_test.cc43 tensorflow::gtl::ArraySlice<GlobalData*> arguments, float expected_result, in ExecuteComputationR0F32() argument
52 LiteralTestUtil::ExpectNear(*Literal::CreateR0<float>(expected_result), in ExecuteComputationR0F32()
60 std::initializer_list<std::initializer_list<float>> expected_result, in ExecuteComputationR2F32() argument
69 LiteralTestUtil::ExpectNear(*Literal::CreateR2<float>(expected_result), in ExecuteComputationR2F32()
/external/google-breakpad/src/processor/
Drange_map_unittest.cc156 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()
Dstatic_range_map_unittest.cc236 bool expected_result = false; // This is correct for tests not stored. in RetrieveTest() local
239 expected_result = true; // test should always succeed. in RetrieveTest()
241 expected_result = side; // should fail low and succeed high. in RetrieveTest()
243 expected_result = !side; // should succeed low and fail high. in RetrieveTest()
254 EXPECT_EQ(observed_result, expected_result) in RetrieveTest()
/external/tensorflow/tensorflow/contrib/boosted_trees/python/kernel_tests/
Dtraining_ops_test.py170 expected_result = """
197 self.assertProtoEquals(expected_result, tree_ensemble_config)
219 expected_result = """
246 self.assertProtoEquals(expected_result, tree_ensemble_config)
336 expected_result = """
383 self.assertProtoEquals(expected_result, tree_ensemble_config)
489 expected_result = """
572 self.assertProtoEquals(expected_result, tree_ensemble_config)
671 expected_result = """
754 self.assertProtoEquals(expected_result, tree_ensemble_config)
[all …]
/external/tensorflow/tensorflow/contrib/seq2seq/python/kernel_tests/
Dbeam_search_ops_test.py45 expected_result = _transpose_batch_time([[[2, 2, 2], [6, 5, 6], [7, 8, 9],
53 self.assertAllEqual(expected_result, beams.eval())
88 expected_result = _transpose_batch_time([[[2, -1, 2], [6, 5, 6], [7, 8, 9],
97 self.assertAllEqual(expected_result, beams.eval())
/external/compiler-rt/test/builtins/Unit/ppc/
Dfixtfdi_test.c458 int64_t expected_result, computed_result; in main() local
463 expected_result = testCases[i].result; in main()
467 if (computed_result != expected_result) { in main()
469 printf("\tExpected %016llx ( %lld )\n", expected_result, expected_result); in main()

1234