/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
D | cpu_layout_assignment_test.cc | 86 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F() 88 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({0, 1}), in TEST_F() 90 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F() 127 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({0, 1}), in TEST_F() 131 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F() 175 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F() 206 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F() 246 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F() 339 ? LayoutUtil::MakeLayout({0, 1}) in AssertCorrectLayoutForDotOutputFusion() 340 : LayoutUtil::MakeLayout({1, 0}); in AssertCorrectLayoutForDotOutputFusion() [all …]
|
D | cpu_layout_assignment.cc | 84 *new_shape.mutable_layout() = LayoutUtil::MakeLayout(dimension_order); in RowMajorShape() 92 *new_shape.mutable_layout() = LayoutUtil::MakeLayout(dimension_order); in ColMajorShape()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | layout_assignment_test.cc | 70 const Layout expected = LayoutUtil::MakeLayout(minor_to_major); in ExpectLayoutIs() 80 const Layout expected = LayoutUtil::MakeLayout(minor_to_major); in ExpectTupleLayoutIs() 106 Layout layout = LayoutUtil::MakeLayout(minor_to_major); in TEST_F() 136 Layout col_major_layout = LayoutUtil::MakeLayout({1, 0}); in TEST_F() 141 Layout row_major_layout = LayoutUtil::MakeLayout({0, 1}); in TEST_F() 166 {{1.0, 2.0}, {3.0, 4.0}}, LayoutUtil::MakeLayout(minor_to_major)); in TEST_F() 168 {{5.0, 6.0}, {7.0, 8.0}}, LayoutUtil::MakeLayout(minor_to_major)); in TEST_F() 188 Layout layout = LayoutUtil::MakeLayout(minor_to_major); in TEST_F() 217 {{1.0, 2.0}, {3.0, 4.0}}, LayoutUtil::MakeLayout({0, 1})))); in TEST_F() 220 {{1.0, 2.0}, {3.0, 4.0}}, LayoutUtil::MakeLayout({1, 0})))); in TEST_F() [all …]
|
D | hlo_cse_test.cc | 85 {{1.0, 2.0}, {3.0, 4.0}}, LayoutUtil::MakeLayout({0, 1})))); in TEST_F() 88 {{1.0, 2.0}, {3.0, 4.0}}, LayoutUtil::MakeLayout({1, 0})))); in TEST_F() 117 {{1.0, 2.0}, {3.0, 4.0}}, LayoutUtil::MakeLayout({0, 1})))); in TEST_F() 120 {{1.0, 2.0}, {3.0, 4.0}}, LayoutUtil::MakeLayout({1, 0})))); in TEST_F() 433 *exp1->mutable_shape()->mutable_layout() = LayoutUtil::MakeLayout({0, 1}); in TEST_F() 437 *exp2->mutable_shape()->mutable_layout() = LayoutUtil::MakeLayout({1, 0}); in TEST_F() 464 *exp1->mutable_shape()->mutable_layout() = LayoutUtil::MakeLayout({0, 1}); in TEST_F() 468 *exp2->mutable_shape()->mutable_layout() = LayoutUtil::MakeLayout({1, 0}); in TEST_F()
|
D | pattern_matcher_gmock_test.cc | 57 Layout l = LayoutUtil::MakeLayout({0, 1}); in TEST()
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | reshape_test.cc | 604 LayoutUtil::MakeLayout({0, 1, 2, 3})); in XLA_TEST_P() 695 input, LayoutUtil::MakeLayout({3, 2, 1, 0})); in XLA_TEST_P() 714 input, LayoutUtil::MakeLayout({3, 2, 1, 0})); in XLA_TEST_P() 734 input, LayoutUtil::MakeLayout({3, 2, 1, 0})); in XLA_TEST_P() 760 input_array, LayoutUtil::MakeLayout({1, 2, 3, 0})); in XLA_TEST_P() 840 input, LayoutUtil::MakeLayout({3, 2, 1, 0})); in XLA_TEST_P() 850 .Relayout(LayoutUtil::MakeLayout({3, 2, 1, 0})); in XLA_TEST_P() 867 input, LayoutUtil::MakeLayout({3, 2, 1, 0})); in XLA_TEST_P() 877 .Relayout(LayoutUtil::MakeLayout({3, 2, 1, 0})); in XLA_TEST_P() 894 input, LayoutUtil::MakeLayout({3, 2, 1, 0})); in XLA_TEST_P() [all …]
|
D | custom_call_test.cc | 151 ForceParameterLayout(module.get(), 0, LayoutUtil::MakeLayout({1, 0})); in XLA_TEST_F() 152 ForceResultLayout(module.get(), LayoutUtil::MakeLayout({0, 1})); in XLA_TEST_F() 181 ForceParameterLayout(module.get(), 0, LayoutUtil::MakeLayout({1, 0})); in XLA_TEST_F() 182 ForceResultLayout(module.get(), LayoutUtil::MakeLayout({0, 1})); in XLA_TEST_F()
|
D | reduce_hlo_test.cc | 88 LayoutUtil::MakeLayout(reduce_layout.output_minor_to_major); in XLA_TEST_P() 93 LayoutUtil::MakeLayout(reduce_layout.input_minor_to_major); in XLA_TEST_P()
|
D | dot_operation_test.cc | 225 LayoutUtil::MakeLayout( in TestImpl() 232 LayoutUtil::MakeLayout( in TestImpl() 291 *dot_lhs_data, LayoutUtil::MakeLayout( in TestImpl() 298 Layout rhs_layout = LayoutUtil::MakeLayout( in TestImpl() 312 *addend_data, LayoutUtil::MakeLayout( in TestImpl() 473 LayoutUtil::MakeLayout( in TestImpl() 480 LayoutUtil::MakeLayout( in TestImpl() 506 {{1.0, 2.0, 3.0, -4.0}}, LayoutUtil::MakeLayout({1, 0}))) in XLA_TEST_F() 512 LayoutUtil::MakeLayout({1, 0}))) in XLA_TEST_F() 773 *lhs, LayoutUtil::MakeLayout( in XLA_TYPED_TEST() [all …]
|
D | round_trip_packed_literal_test.cc | 85 const Layout layout = LayoutUtil::MakeLayout({1, 0}); in TEST_F() 118 const Layout layout = LayoutUtil::MakeLayout({0, 1}); in TEST_F()
|
D | compilation_cache_test.cc | 145 {{1.0f, 2.0f}, {3.0f, 4.0f}}, LayoutUtil::MakeLayout({1, 0})); in XLA_TEST_F() 150 {{1.0f, 2.0f}, {3.0f, 4.0f}}, LayoutUtil::MakeLayout({0, 1})); in XLA_TEST_F()
|
D | reduce_test.cc | 181 input_literal.Relayout(LayoutUtil::MakeLayout({minor, major})); in RunR2ToR1PredTest() 214 input_literal.Relayout(LayoutUtil::MakeLayout({minor, major})); in RunR2ToR0Test() 241 input_literal.Relayout(LayoutUtil::MakeLayout({minor, major})); in RunR2ToR1Test() 298 input_literal.Relayout(LayoutUtil::MakeLayout({minor, major})); in RunVectorizedReduceTestForType() 451 input_literal = input_literal.Relayout(LayoutUtil::MakeLayout({0, 1})); in XLA_TEST_F() 482 input_literal = input_literal.Relayout(LayoutUtil::MakeLayout({0, 1})); in XLA_TEST_F() 820 input_literal.Relayout(LayoutUtil::MakeLayout(GetParam().layout)); in XLA_TEST_P()
|
D | reduce_window_test.cc | 343 input_array, LayoutUtil::MakeLayout({0, 3, 2, 1})); in TEST_P() 401 input_array, LayoutUtil::MakeLayout({3, 2, 1, 0})); in XLA_TEST_P() 422 input_array, LayoutUtil::MakeLayout({3, 2, 1, 0})); in XLA_TEST_P() 443 input_array, LayoutUtil::MakeLayout({3, 2, 1, 0})); in XLA_TEST_P() 621 input, LayoutUtil::MakeLayout(param.layout)); in DoIt() 1022 input, LayoutUtil::MakeLayout(param.layout)); in TEST_P() 1164 input, LayoutUtil::MakeLayout(param.layout)); in DoIt()
|
D | matrix_ops_simple_test.cc | 204 lhs, LayoutUtil::MakeLayout(minor_to_major(row_major))))); in TestImpl() 208 rhs, LayoutUtil::MakeLayout(minor_to_major(row_major))))); in TestImpl()
|
D | local_client_execute_test.cc | 132 {{1.0f, 2.0f}, {3.0f, 4.0f}}, LayoutUtil::MakeLayout({0, 1}))); in XLA_TEST_F() 134 LayoutUtil::MakeLayout({0, 1}))); in XLA_TEST_F() 138 {{10.0f, 20.0f}, {30.0f, 40.0f}}, LayoutUtil::MakeLayout({1, 0}))); in XLA_TEST_F() 140 LayoutUtil::MakeLayout({1, 0}))); in XLA_TEST_F() 175 LayoutUtil::MakeLayout({0, 1}))); in XLA_TEST_F() 187 LayoutUtil::MakeLayout({1, 0}))); in XLA_TEST_F()
|
D | convolution_test.cc | 780 expected_r4.Relayout(LayoutUtil::MakeLayout({0, 3, 2, 1})); in RunTest() 839 input_r4.Relayout(LayoutUtil::MakeLayout({0, 3, 2, 1})); in RunTest() 908 input_r4.Relayout(LayoutUtil::MakeLayout({0, 3, 2, 1})); in RunTest() 921 expected_r4.Relayout(LayoutUtil::MakeLayout({0, 3, 2, 1})); in RunTest() 979 input_r4.Relayout(LayoutUtil::MakeLayout({0, 3, 2, 1})); in RunTest() 996 expected_r4.Relayout(LayoutUtil::MakeLayout({0, 3, 2, 1})); in RunTest() 1118 input_r4.Relayout(LayoutUtil::MakeLayout({0, 3, 2, 1})); in RunTest() 1130 expected_r4.Relayout(LayoutUtil::MakeLayout({3, 0, 2, 1})); in RunTest() 1188 input_r4.Relayout(LayoutUtil::MakeLayout({0, 3, 2, 1})); in RunTest() 1200 expected_r4.Relayout(LayoutUtil::MakeLayout({0, 3, 2, 1})); in RunTest() [all …]
|
D | slice_test.cc | 195 *expected, LayoutUtil::MakeLayout({0, 1, 2, 3})); in XLA_TEST_F() 395 input, LayoutUtil::MakeLayout(spec.layout)); in XLA_TEST_P() 489 values, LayoutUtil::MakeLayout(spec.input_layout)); in Run()
|
D | copy_test.cc | 182 ForceResultLayout(module.get(), LayoutUtil::MakeLayout({1, 2, 0})); in TestCopyConstantLayout021() 216 ForceResultLayout(module.get(), LayoutUtil::MakeLayout(permutation)); in TestCopyConstantLayoutR4()
|
D | compute_constant_test.cc | 251 auto layout_proto = LayoutUtil::MakeLayout(layout); in XLA_TEST_F() 260 {{11, 22}, {33, 44}}, LayoutUtil::MakeLayout(layout)); in XLA_TEST_F()
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | layout_util_test.cc | 33 *shape.mutable_layout() = LayoutUtil::MakeLayout(minor_to_major); in MakeShapeWithLayout() 211 *src.mutable_layout() = LayoutUtil::MakeLayout({1, 2, 3, 4}); in TEST_F() 308 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F() 310 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({2, 1, 0}), in TEST_F() 312 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({3, 2, 1, 0}), in TEST_F() 315 LayoutUtil::Equal(LayoutUtil::MakeLayout({4, 3, 2, 1, 0}), in TEST_F() 407 *shape.mutable_layout() = LayoutUtil::MakeLayout({0, 1, 2}); in TEST_F() 437 *shape.mutable_layout() = LayoutUtil::MakeLayout({0}); in TEST_F() 472 LayoutUtil::MakeLayout({0, 2, 3}); in TEST_F()
|
D | layout_util.h | 39 static Layout MakeLayout(absl::Span<const int64> minor_to_major,
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/tests/ |
D | infeed_test.cc | 73 const Layout r3_dim0minor = LayoutUtil::MakeLayout({0, 1, 2}); in TEST_F() 74 const Layout r3_dim0major = LayoutUtil::MakeLayout({2, 1, 0}); in TEST_F()
|
/external/tensorflow/tensorflow/compiler/tf2xla/ |
D | shape_util.cc | 50 xla::StatusOr<bool> MakeLayout(absl::Span<const int64> minor_to_major, in MakeLayout() function 67 *layout = xla::LayoutUtil::MakeLayout(minor_to_major); in MakeLayout() 76 TF_ASSIGN_OR_RETURN(bool has_layout, MakeLayout(minor_to_major, &layout)); in AssignLayout()
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | gpu_layout_assignment_test.cc | 45 *ashape_in_row_major.mutable_layout() = LayoutUtil::MakeLayout({1, 0}); in TEST_F() 46 *ashape_in_col_major.mutable_layout() = LayoutUtil::MakeLayout({0, 1}); in TEST_F() 103 *shapes.back().mutable_layout() = LayoutUtil::MakeLayout(layout_vec); in AllLayoutsOf()
|
/external/tensorflow/tensorflow/compiler/xla/service/cpu/tests/ |
D | cpu_infeed_test.cc | 79 const Layout r3_dim0minor = LayoutUtil::MakeLayout({0, 1, 2}); in TEST_F() 80 const Layout r3_dim0major = LayoutUtil::MakeLayout({2, 1, 0}); in TEST_F()
|