Home
last modified time | relevance | path

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

12345

/external/tensorflow/tensorflow/python/autograph/pyct/common_transformers/
Danf_test.py121 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/
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.py207 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/
Ddecode_raw_op_test.py87 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)
Dbatch_gather_op_test.py54 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/
Dtraining_ops_test.py94 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/
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/tensorflow/tensorflow/contrib/boosted_trees/python/kernel_tests/
Dtraining_ops_test.py195 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/
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/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/toolchain-utils/binary_search_tool/test/
Dbinary_search_tool_tester.py99 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/
Dtest_eu_validate.cpp444 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/
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()
/external/tensorflow/tensorflow/python/ops/
Dspecial_math_ops_test.py141 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/
Dcompilation_cache_test.cc43 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/
Dintsizes_unittests.c15 int64, uint64, sint64, expected_result) \ argument
43 TEST(pb_decode(&s, IntSizes_fields, &msg2) == expected_result); \
44 if (expected_result) \
61 if (expected_result) \

12345