Home
last modified time | relevance | path

Searched refs:expected_literal (Results 1 – 13 of 13) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/tests/
Dreshape_test.cc64 auto expected_literal = LiteralUtil::CreateR1<float>({1.0f}); in XLA_TEST_P() local
65 ComputeAndCompareLiteral(&builder, expected_literal, {input.get()}, in XLA_TEST_P()
77 auto expected_literal = LiteralUtil::CreateR1<float>({1.0f}); in XLA_TEST_P() local
78 ComputeAndCompareLiteral(&builder, expected_literal, {input.get()}, in XLA_TEST_P()
90 auto expected_literal = LiteralUtil::CreateR1<float>({1.0f}); in XLA_TEST_P() local
91 ComputeAndCompareLiteral(&builder, expected_literal, {input.get()}, in XLA_TEST_P()
108 auto expected_literal = LiteralUtil::CreateR0<float>(1.0f); in XLA_TEST_P() local
109 ComputeAndCompareLiteral(&builder, expected_literal, {input.get()}, in XLA_TEST_P()
123 auto expected_literal = LiteralUtil::CreateR1<float>({-1.0f}); in XLA_TEST_P() local
124 ComputeAndCompareLiteral(&builder, expected_literal, {input.get()}, in XLA_TEST_P()
[all …]
Dclient_library_test_base.h421 Literal expected_literal = LiteralUtil::CreateR0<NativeT>(expected); in ComputeAndCompareR0() local
422 ClientLibraryTestBase::ComputeAndCompareLiteral(builder, expected_literal, in ComputeAndCompareR0()
437 Literal expected_literal = LiteralUtil::CreateR0<NativeT>(expected); in ComputeAndCompareR0() local
438 ClientLibraryTestBase::ComputeAndCompareLiteral(builder, expected_literal, in ComputeAndCompareR0()
446 Literal expected_literal = LiteralUtil::CreateR1<NativeT>(expected); in ComputeAndCompareR1() local
447 ClientLibraryTestBase::ComputeAndCompareLiteral(builder, expected_literal, in ComputeAndCompareR1()
462 Literal expected_literal = LiteralUtil::CreateR1<NativeT>(expected); in ComputeAndCompareR1() local
463 ClientLibraryTestBase::ComputeAndCompareLiteral(builder, expected_literal, in ComputeAndCompareR1()
471 Literal expected_literal = in ComputeAndCompareR2() local
473 ClientLibraryTestBase::ComputeAndCompareLiteral(builder, expected_literal, in ComputeAndCompareR2()
[all …]
Dcompute_constant_test.cc225 Literal expected_literal = LiteralUtil::CreateR1<int32>({4, 6}); in TEST_F() local
226 EXPECT_TRUE(LiteralTestUtil::Equal(expected_literal, computed)); in TEST_F()
239 Literal expected_literal = LiteralUtil::CreateR0<int32>(5); in TEST_F() local
240 EXPECT_TRUE(LiteralTestUtil::Equal(expected_literal, computed)); in TEST_F()
259 Literal expected_literal = LiteralUtil::CreateR2WithLayout<int32>( in XLA_TEST_F() local
262 expected_literal.shape(), computed.shape())); in XLA_TEST_F()
263 EXPECT_TRUE(LiteralTestUtil::Equal(expected_literal, computed)); in XLA_TEST_F()
Dclient_test.cc59 Literal expected_literal = LiteralUtil::CreateR2WithLayout<int32>( in XLA_TEST_F() local
63 auto computed, client_->Transfer(*data, &expected_literal.shape())); in XLA_TEST_F()
66 expected_literal.shape(), computed.shape())); in XLA_TEST_F()
67 EXPECT_TRUE(LiteralTestUtil::Equal(expected_literal, computed)); in XLA_TEST_F()
Dslice_test.cc194 auto expected_literal = LiteralUtil::CreateR4FromArray4DWithLayout( in XLA_TEST_F() local
199 ComputeAndCompareLiteral(&builder, expected_literal, {}, ErrorSpec(0.000001), in XLA_TEST_F()
200 &expected_literal.shape()); in XLA_TEST_F()
Dclient_library_test_base.cc165 Literal expected_literal = LiteralUtil::CreateR1(expected); in ComputeAndCompareR1() local
166 ClientLibraryTestBase::ComputeAndCompareLiteral(builder, expected_literal, in ComputeAndCompareR1()
426 Literal expected_literal = LiteralUtil::CreateR1U8(expected); in ComputeAndCompareR1U8() local
428 VLOG(1) << "expected: " << expected_literal.ToString(); in ComputeAndCompareR1U8()
Dscalar_computations_test.cc389 auto expected_literal = in XLA_TEST_F() local
391 EXPECT_TRUE(LiteralTestUtil::Equal(expected_literal, actual_literal)); in XLA_TEST_F()
431 auto expected_literal = in XLA_TEST_F() local
433 EXPECT_TRUE(LiteralTestUtil::Equal(expected_literal, actual_literal)); in XLA_TEST_F()
Dconvolution_variants_test.cc1347 auto expected_literal = in XLA_TEST_F() local
1354 ComputeAndCompareLiteral(&builder, expected_literal, {}, error_spec_); in XLA_TEST_F()
1371 auto expected_literal = in XLA_TEST_F() local
1382 ComputeAndCompareLiteral(&builder, expected_literal, {}, error_spec_); in XLA_TEST_F()
Dreduce_window_test.cc660 Literal expected_literal = LiteralUtil::CreateFromArray(*expected); in DoIt() local
663 AsInt64Slice(expected_literal.shape().dimensions()), param.layout); in DoIt()
664 ComputeAndCompareLiteral(&b, expected_literal, {input_arg.get()}, in DoIt()
/external/pdfium/testing/
Dtest_support.h28 #define STR_IN_OUT_CASE(input_literal, expected_literal, ...) \ argument
32 reinterpret_cast<const unsigned char*>(expected_literal), \
33 sizeof(expected_literal) - 1, __VA_ARGS__ \
/external/tensorflow/tensorflow/compiler/xla/rpc/
Dgrpc_client_test.cc98 Literal expected_literal = LiteralUtil::CreateR1<float>(expected); in TEST_F() local
102 EXPECT_TRUE(LiteralTestUtil::Near(expected_literal, result_literal, in TEST_F()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_compiler_test.cc228 xla::Literal expected_literal = xla::LiteralUtil::MakeTuple({&expected0}); in TEST_F() local
229 EXPECT_TRUE(xla::LiteralTestUtil::Equal(expected_literal, actual_literal)); in TEST_F()
513 xla::Literal expected_literal = xla::LiteralUtil::MakeTuple({&expected0}); in TEST_F() local
514 EXPECT_TRUE(xla::LiteralTestUtil::Equal(expected_literal, actual_literal)); in TEST_F()
788 xla::Literal expected_literal = in TEST_F() local
790 EXPECT_TRUE(xla::LiteralTestUtil::Equal(expected_literal, actual_literal)); in TEST_F()
975 xla::Literal expected_literal = in RunAndCheckVariablesComputation() local
977 EXPECT_TRUE(xla::LiteralTestUtil::Equal(expected_literal, actual_literal)); in RunAndCheckVariablesComputation()
1129 xla::Literal expected_literal = xla::LiteralUtil::MakeTuple({}); in TEST_F() local
1130 EXPECT_TRUE(xla::LiteralTestUtil::Equal(expected_literal, actual_literal)); in TEST_F()
[all …]
/external/tensorflow/tensorflow/compiler/xrt/tests/
Draw_api_test.cc355 xla::Literal expected_literal = in TEST() local
357 EXPECT_TRUE(CompareLiteralToLiteralProto(expected_literal, response)); in TEST()
1179 auto expected_literal = in TEST() local
1182 EXPECT_TRUE(CompareLiterals(return_literal, expected_literal)); in TEST()