/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | reshape_test.cc | 64 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 …]
|
D | client_library_test_base.h | 421 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 …]
|
D | compute_constant_test.cc | 225 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()
|
D | client_test.cc | 59 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()
|
D | slice_test.cc | 194 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()
|
D | client_library_test_base.cc | 165 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()
|
D | scalar_computations_test.cc | 389 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()
|
D | convolution_variants_test.cc | 1347 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()
|
D | reduce_window_test.cc | 660 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/ |
D | test_support.h | 28 #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/ |
D | grpc_client_test.cc | 98 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/ |
D | xla_compiler_test.cc | 228 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/ |
D | raw_api_test.cc | 355 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()
|