Home
last modified time | relevance | path

Searched refs:expected_val (Results 1 – 20 of 20) sorted by relevance

/external/tensorflow/tensorflow/python/kernel_tests/
Dreduce_join_op_test.py180 expected_val = "thisisatestpleasedonotpanic"
182 self._testReduceJoin(input_array, expected_val, expected_shape, axis=None)
185 expected_val = input_array
187 self._testReduceJoin(input_array, expected_val, expected_shape, axis=[])
283 expected_val = [["thisisatestpleasedonotpanic"]]
286 constant_op.constant(input_array), expected_val, expected_shape,
290 expected_val = input_array
293 input_array, expected_val, expected_shape, keep_dims=True, axis=[])
Dslice_op_test.py257 expected_val = inp[indices[0]:indices[0] + sizes[0], indices[1]:indices[
261 self.assertAllEqual(slice_val, expected_val)
262 self.assertAllEqual(slice2_val, expected_val)
263 self.assertEqual(expected_val.shape, slice_t.get_shape())
264 self.assertEqual(expected_val.shape, slice2_t.get_shape())
Dsparse_conditional_accumulator_test.py297 expected_val = sum(elems) / len(elems)
299 np.array([[expected_val, 0], [0, expected_val]]).astype(np.float32),
332 expected_val = 550.0
334 np.array([[expected_val, 0], [0, expected_val]]).astype(np.float32),
Dcond_v2_test.py61 expected_val, actual_val, expected_grad_val, actual_grad_val = sess.run(
63 self.assertEqual(expected_val, actual_val)
68 expected_val, actual_val, expected_grad_val, actual_grad_val = sess.run(
70 self.assertEqual(expected_val, actual_val)
/external/tensorflow/tensorflow/core/util/tensor_bundle/
Dtensor_bundle_test.cc61 const Tensor& expected_val) { in Expect() argument
68 EXPECT_EQ(expected_val.dtype(), dtype); in Expect()
69 EXPECT_EQ(expected_val.shape(), shape); in Expect()
71 Tensor val(expected_val.dtype(), shape); in Expect()
73 test::ExpectTensorEqual<T>(val, expected_val); in Expect()
95 auto* expected_val = expected_var.get<T>(); in ExpectVariant() local
96 EXPECT_EQ(*expected_val, *actual_val); in ExpectVariant()
101 void ExpectNext(BundleReader* reader, const Tensor& expected_val) { in ExpectNext() argument
107 test::ExpectTensorEqual<T>(val, expected_val); in ExpectNext()
344 Tensor expected_val(DT_FLOAT, kFullShape); in TEST() local
[all …]
/external/autotest/server/hosts/
Dservo_repair.py61 def _validate_attr(host, val, expected_val, attr, config_file): argument
82 if expected_val is not None and val != expected_val:
84 '%s is %s; it should be %s' % (attr, val, expected_val))
/external/googletest/googletest/test/
Dgtest_repeat_test.cc56 const int expected_val = (expected);\
58 if (::testing::internal::IsTrue(expected_val != actual_val)) {\
62 << "Which is: " << expected_val << "\n";\
/external/google-breakpad/src/testing/gtest/test/
Dgtest_repeat_test.cc65 const int expected_val = (expected);\
67 if (::testing::internal::IsTrue(expected_val != actual_val)) {\
71 << "Which is: " << expected_val << "\n";\
/external/tensorflow/tensorflow/python/kernel_tests/random/
Drandom_grad_test.py139 expected_val = misc.derivative(
143 self.assertAllClose(actual_val, expected_val, rtol=1e-3, atol=1e-3)
190 (actual_val, expected_val) = self.evaluate((actual, expected))
192 self.assertAllClose(actual_val, expected_val, rtol=1e-3, atol=1e-3)
/external/tensorflow/tensorflow/core/kernels/
Dquantized_resize_bilinear_op_test.cc265 float expected_val = 0.0f; in TestResizeBilinearOneDim() local
267 expected_val = QuantizedToFloat<qint32>( in TestResizeBilinearOneDim()
274 expected_val = (image_val0 + image_val1) * SCALE; in TestResizeBilinearOneDim()
276 VLOG(1) << "(" << i << ") " << expected_val << ", " << resized_image_val; in TestResizeBilinearOneDim()
277 EXPECT_NEAR(expected_val, resized_image_val, RESIZE_VAL_TOLERANCE) in TestResizeBilinearOneDim()
278 << expected_val << ", " << resized_image_val; in TestResizeBilinearOneDim()
/external/bcc/tests/python/
Dtest_usdt2.py118 def check_event_val(data, event_state, expected_val): argument
120 if result.value == expected_val:
/external/tensorflow/tensorflow/compiler/tests/
Dlrn_ops_test.py123 expected_val = self.evaluate(expected)
125 self.assertAllClose(actual_val, expected_val, rtol=1e-3)
/external/tensorflow/tensorflow/core/debug/
Dgrpc_session_debug_test.cc74 void IsSingleFloatValue(const Tensor& val, float expected_val) { in IsSingleFloatValue() argument
77 ASSERT_EQ(val.flat<float>()(0), expected_val); in IsSingleFloatValue()
/external/tensorflow/tensorflow/python/training/
Dserver_lib_test.py136 expected_val = np.empty([10000, 3000], dtype=np.float32)
137 expected_val.fill(0.5)
138 self.assertAllEqual(expected_val, sess.run(c))
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_session_test.cc65 static void IsSingleFloatValue(const Tensor& val, float expected_val) { in IsSingleFloatValue() argument
68 ASSERT_EQ(val.flat<float>()(0), expected_val); in IsSingleFloatValue()
/external/tensorflow/tensorflow/python/framework/
Dfunction_test.py559 expected_val = v.value()
564 self.assertAllEqual(expected_val.eval(), self.evaluate(actual_val))
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_test.py2785 expected_val = [1., 0.9, 0.8, 0.7, 0.6]
2787 self.assertAllClose(history.history[key], expected_val, 1e-3)
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_verifier.c14236 uint32_t expected_val; in do_test_single() local
14256 expected_val = unpriv && test->retval_unpriv ? in do_test_single()
14302 if (!err && retval != expected_val && in do_test_single()
14303 expected_val != POINTER_VALUE) { in do_test_single()
14304 printf("FAIL retval %d != %d\n", retval, expected_val); in do_test_single()
/external/llvm/docs/
DLangRef.rst12217 declare i1 @llvm.expect.i1(i1 <val>, i1 <expected_val>)
12218 declare i32 @llvm.expect.i32(i32 <val>, i32 <expected_val>)
12219 declare i64 @llvm.expect.i64(i64 <val>, i64 <expected_val>)
/external/swiftshader/third_party/llvm-7.0/llvm/docs/
DLangRef.rst14682 declare i1 @llvm.expect.i1(i1 <val>, i1 <expected_val>)
14683 declare i32 @llvm.expect.i32(i32 <val>, i32 <expected_val>)
14684 declare i64 @llvm.expect.i64(i64 <val>, i64 <expected_val>)