Home
last modified time | relevance | path

Searched refs:WithValue (Results 1 – 25 of 25) 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()
137 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(input, -1), 3, &last_dim)); in ColorspaceShapeFn()
162 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(boxes, 1), 4, &unused)); in NMSShapeFn()
187 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(boxes, 1), 4, &unused)); in SoftNMSShapeFn()
216 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(boxes, 3), 4, &unused)); in CombinedNMSShapeFn()
399 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(unused, 0), 2, &unused_dim)); in __anon30b5031d0602()
502 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(unused, 0), 4, &unused_dim)); in __anon30b5031d0802()
674 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(boxes, 2), 4, &unused)); in __anon30b5031d0f02()
717 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(image_size, 0), 3, &unused)); in __anon30b5031d1102()
718 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(bounding_boxes, 2), 4, &unused)); in __anon30b5031d1102()
[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 __anonea01102b1602()
680 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anonea01102b1702()
723 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anonea01102b1802()
750 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anonea01102b1902()
777 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(c->input(0), 0), 2, &unused_dim)); in __anonea01102b1a02()
812 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(c->input(0), 0), 2, &unused_dim)); in __anonea01102b1b02()
840 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anonea01102b1c02()
859 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anonea01102b1d02()
874 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anonea01102b1e02()
[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 __anon18b155f40202()
195 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon18b155f40402()
250 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon18b155f40702()
294 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon18b155f40902()
452 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon18b155f40e02()
488 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_dim)); in __anon18b155f41002()
Dstateless_random_ops_v2.cc35 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(key, 0), RNG_KEY_SIZE, &unused)); in StatelessShapeV2()
109 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(seed, 0), 2, &unused)); in __anonea62c6790202()
129 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(seed, 0), 2, &unused)); in __anonea62c6790302()
Dstateless_random_ops.cc30 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(seed, 0), 2, &unused)); in StatelessShape()
103 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(seed, 0), 2, &unused_dim)); in __anona1237d120202()
143 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(seed, 0), 2, &unused_dim)); in __anona1237d120302()
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 __anon52e493120202()
161 c->WithValue(c->Dim(s, 0), c->num_inputs() - 2, &unused_dim)); in __anon52e493120502()
185 c->WithValue(c->Dim(s, 0), c->num_inputs() - 3, &unused_dim)); in __anon52e493120602()
443 c->WithValue(c->Dim(c->input(0), 0), 2, &unused_handle)); in __anon52e493120b02()
Dset_ops.cc121 c->WithValue(input1_rank_dim, input0_rank, &input1_rank_dim)); in __anonda6063e60202()
172 c->WithValue(input1_rank_dim, input0_rank, &input1_rank_dim)); in __anonda6063e60302()
Dcandidate_sampling_ops.cc153 c->WithValue(c->Dim(true_classes, 1), num_true, &unused)); in __anonafdb00d10202()
Dspectral_ops.cc85 c->WithValue(c->Dim(fft_length_input, 0), rank, &unused_dim)); in RFFTShape()
Dlinalg_ops.cc323 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(maindiag, -2), 1, &unused)); in TridiagonalMatMulShapeFn()
353 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 __anon36a8fc880702()
182 c->WithValue(c->Dim(serialized_sparse, 1), 3, &unused)); in __anon36a8fc880802()
Darray_ops.cc86 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(paddings, 1), 2, &unused)); in PadShapeFn()
94 TF_RETURN_IF_ERROR(c->WithValue(n_dim, c->Rank(input), &n_dim)); in PadShapeFn()
112 TF_RETURN_IF_ERROR(c->WithValue(n_dim, num_dims, &n_dim)); in PadShapeFn()
156 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 __anon42d741190202()
433 c->WithValue(c->Dim(s, axis), c->num_outputs(), &unused)); in __anon42d741190502()
Dmath_ops.cc1598 TF_RETURN_IF_ERROR(c->WithValue(dim, 3, &dim)); in __anon725c8f640c02()
1620 c->WithValue(c->Dim(value_range_shape, 0), 2, &unused)); in __anon725c8f640d02()
Dboosted_trees_ops.cc440 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(feature_shape, 0), 2, &unused)); in __anon770f674c0b02()
/external/tensorflow/tensorflow/core/tpu/ops/
Dtpu_execute_op.cc33 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(key, 0), 3, &unused)); in __anonab1a3a9a0102()
53 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(key, 0), 3, &unused)); in __anonab1a3a9a0202()
/external/deqp-deps/SPIRV-Tools/utils/vscode/src/lsp/protocol/
Dcontext.go28 return context.WithValue(ctx, clientKey, client)
/external/angle/third_party/vulkan-deps/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.h391 Status WithValue(DimensionHandle dim, int64 value,
Dcommon_shape_fns.cc468 TF_RETURN_IF_ERROR(c->WithValue(vect_dim, 4, &unused_vect_dim)); in CheckFormatConstraintsOnShape()
1631 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(size, 0), 4, &unused)); in MaxPoolV2Shape()
1633 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(size, 0), 4, &unused)); in MaxPoolV2Shape()
Dshape_inference.cc363 Status InferenceContext::WithValue(DimensionHandle dim, int64 value, in WithValue() function in tensorflow::shape_inference::InferenceContext