Home
last modified time | relevance | path

Searched refs:WithValue (Results 1 – 23 of 23) sorted by relevance

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsIterableContainingInOrderTest.java17 …private final Matcher<Iterable<? extends WithValue>> contains123 = contains(value(1), value(2), va…
37 List<WithValue> valueList = asList(make(1), make(2)); in testDoesNotMatchWithFewerElementsThanExpected()
50 …tMismatchDescription("no item was value with <4>", contains(value(4)), new ArrayList<WithValue>()); in testDoesNotMatchEmptyIterable()
61 public static class WithValue { class in IsIterableContainingInOrderTest
63 public WithValue(int value) { this.value = value; } in WithValue() method in IsIterableContainingInOrderTest.WithValue
68 public static WithValue make(int value) { in make()
69 return new WithValue(value); in make()
72 public static Matcher<WithValue> value(int value) { in value()
73 return new FeatureMatcher<WithValue, Integer>(equalTo(value), "value with", "value") { in value()
74 @Override protected Integer featureValueOf(WithValue actual) { return actual.getValue(); } in value()
DIsIterableContainingInRelativeOrderTest.java17 …private final Matcher<Iterable<? extends WithValue>> contains123 = containsInRelativeOrder(value(1…
57 List<WithValue> valueList = asList(make(1), make(2)); in testDoesNotMatchWithFewerElementsThanExpected()
70 …ion("value with <4> was not found", containsInRelativeOrder(value(4)), new ArrayList<WithValue>()); in testDoesNotMatchEmptyIterable()
77 public static class WithValue { class in IsIterableContainingInRelativeOrderTest
79 public WithValue(int value) { this.value = value; } in WithValue() method in IsIterableContainingInRelativeOrderTest.WithValue
84 public static WithValue make(int value) { in make()
85 return new WithValue(value); in make()
88 public static Matcher<WithValue> value(int value) { in value()
89 return new FeatureMatcher<WithValue, Integer>(equalTo(value), "value with", "value") { in value()
90 @Override protected Integer featureValueOf(WithValue actual) { return actual.getValue(); } in value()
DIsIterableContainingInAnyOrderTest.java5 import org.hamcrest.collection.IsIterableContainingInOrderTest.WithValue;
43 …final Matcher<Iterable<? extends WithValue>> helpTheCompilerOut = containsInAnyOrder(value(1), val… in testDoesNotMatchIfThereAreMoreElementsThanMatchers()
/external/tensorflow/tensorflow/core/ops/
Dimage_ops.cc36 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(size, 0), 2, &unused)); in SetOutputToSizedImage()
103 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(input, -1), 3, &last_dim)); in ColorspaceShapeFn()
128 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(boxes, 1), 4, &unused)); in NMSShapeFn()
153 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(boxes, 1), 4, &unused)); in SoftNMSShapeFn()
182 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(boxes, 3), 4, &unused)); in CombinedNMSShapeFn()
359 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(unused, 0), 2, &unused_dim)); in __anone43000c10602()
451 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(unused, 0), 4, &unused_dim)); in __anone43000c10802()
623 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(boxes, 2), 4, &unused)); in __anone43000c10f02()
666 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(image_size, 0), 3, &unused)); in __anone43000c11102()
667 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(bounding_boxes, 2), 4, &unused)); in __anone43000c11102()
[all …]
Ddata_flow_ops.cc166 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_handle)); in TwoElementVectorInputsAndScalarOutputs()
658 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anonb84a3fcf1602()
680 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anonb84a3fcf1702()
723 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anonb84a3fcf1802()
750 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anonb84a3fcf1902()
777 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(c->input(0), 0), 2, &unused_dim)); in __anonb84a3fcf1a02()
812 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(c->input(0), 0), 2, &unused_dim)); in __anonb84a3fcf1b02()
840 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anonb84a3fcf1c02()
859 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anonb84a3fcf1d02()
874 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anonb84a3fcf1e02()
[all …]
Dlookup_ops.cc37 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_handle)); in TwoElementVectorInputsAndScalarOutputs()
51 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_handle)); in ScalarAndTwoElementVectorInputsAndScalarOutputs()
81 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon3b8c08180202()
197 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon3b8c08180402()
252 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon3b8c08180702()
294 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon3b8c08180902()
452 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon3b8c08180e02()
487 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon3b8c08181002()
Dstateless_random_ops.cc30 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(seed, 0), 2, &unused)); in StatelessShape()
84 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(seed, 0), 2, &unused_dim)); in __anond38e2c360202()
Dio_ops.cc45 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_handle)); in TwoElementVectorAndScalarOutputs()
79 c->WithValue(c->Dim(s, 0), c->num_inputs() - 3, &unused_dim)); in __anon2d93d3360202()
161 c->WithValue(c->Dim(s, 0), c->num_inputs() - 2, &unused_dim)); in __anon2d93d3360502()
185 c->WithValue(c->Dim(s, 0), c->num_inputs() - 3, &unused_dim)); in __anon2d93d3360602()
443 c->WithValue(c->Dim(c->input(0), 0), 2, &unused_handle)); in __anon2d93d3360b02()
Dset_ops.cc121 c->WithValue(input1_rank_dim, input0_rank, &input1_rank_dim)); in __anon0af7a88a0202()
172 c->WithValue(input1_rank_dim, input0_rank, &input1_rank_dim)); in __anon0af7a88a0302()
Dcandidate_sampling_ops.cc153 c->WithValue(c->Dim(true_classes, 1), num_true, &unused)); in __anon27ae08f50202()
Dspectral_ops.cc85 c->WithValue(c->Dim(fft_length_input, 0), rank, &unused_dim)); in RFFTShape()
Dlinalg_ops.cc280 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(maindiag, -2), 1, &unused)); in TridiagonalMatMulShapeFn()
310 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(lhs, -2), 3, &m_lhs)); in TridiagonalSolveShapeFn()
Dsparse_ops.cc162 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(c->input(0), -1), 3, &unused)); in __anon5983aeac0702()
182 c->WithValue(c->Dim(serialized_sparse, 1), 3, &unused)); in __anon5983aeac0802()
Darray_ops.cc85 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(paddings, 1), 2, &unused)); in PadShapeFn()
93 TF_RETURN_IF_ERROR(c->WithValue(n_dim, c->Rank(input), &n_dim)); in PadShapeFn()
111 TF_RETURN_IF_ERROR(c->WithValue(n_dim, num_dims, &n_dim)); in PadShapeFn()
155 TF_RETURN_IF_ERROR(c->WithValue(perm_elems, rank, &perm_elems)); in TransposeShapeFn()
310 if (!c->WithValue(c->Dim(c->input(i), 0), 1, &unused).ok()) { in __anonf6523ebd0202()
433 c->WithValue(c->Dim(s, axis), c->num_outputs(), &unused)); in __anonf6523ebd0502()
Dmath_ops.cc1565 TF_RETURN_IF_ERROR(c->WithValue(dim, 3, &dim)); in __anonb5dc68880c02()
1587 c->WithValue(c->Dim(value_range_shape, 0), 2, &unused)); in __anonb5dc68880d02()
Dboosted_trees_ops.cc440 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(feature_shape, 0), 2, &unused)); in __anon9fefc8f00b02()
/external/deqp-deps/SPIRV-Tools/utils/vscode/src/lsp/protocol/
Dcontext.go28 return context.WithValue(ctx, clientKey, client)
/external/angle/third_party/spirv-tools/src/utils/vscode/src/lsp/protocol/
Dcontext.go28 return context.WithValue(ctx, clientKey, client)
/external/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/protocol/
Dcontext.go28 return context.WithValue(ctx, clientKey, client)
/external/tensorflow/tensorflow/core/framework/
Dshape_inference_test.cc442 TEST_F(ShapeInferenceTest, WithValue) { in TEST_F() argument
452 EXPECT_TRUE(c.WithValue(d1, 1, &out1).ok()); in TEST_F()
455 EXPECT_TRUE(c.WithValue(d1, 2, &out2).ok()); in TEST_F()
460 EXPECT_TRUE(c.WithValue(d1, 1, &out2).ok()); in TEST_F()
467 EXPECT_CONTAINS(c.WithValue(d0, 0, &out1).ToString(), in TEST_F()
471 EXPECT_CONTAINS(c.WithValue(d0, 2, &out1).ToString(), in TEST_F()
475 EXPECT_TRUE(c.WithValue(d0, 1, &out1).ok()); in TEST_F()
Dshape_inference.h370 Status WithValue(DimensionHandle dim, int64 value,
Dcommon_shape_fns.cc577 TF_RETURN_IF_ERROR(c->WithValue(vect_dim, 4, &unused_vect_dim)); in CheckFormatConstraintsOnShape()
1540 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(size, 0), 4, &unused)); in MaxPoolV2Shape()
1542 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(size, 0), 4, &unused)); in MaxPoolV2Shape()
Dshape_inference.cc361 Status InferenceContext::WithValue(DimensionHandle dim, int64 value, in WithValue() function in tensorflow::shape_inference::InferenceContext