Searched refs:has_layout (Results 1 – 17 of 17) sorted by relevance
177 if (shape.has_layout()) { in ValidateLayoutInShape()186 if (!shape.has_layout()) { in ValidateLayoutInShape()196 if (shape.has_layout()) { in ValidateLayoutInShape()274 return shape.IsArray() && shape.has_layout() && IsDense(shape.layout()); in IsDenseArray()294 return shape.IsArray() && shape.has_layout() && IsSparse(shape.layout()); in IsSparseArray()315 return shape.has_layout() && shape.layout().format() != INVALID_FORMAT; in HasLayout()392 if (src.has_layout()) { in CopyLayoutInternal()
89 EXPECT_TRUE(dst.has_layout()); in TEST_F()92 EXPECT_FALSE(dst.has_layout()); in TEST_F()112 EXPECT_TRUE(dst.has_layout()); in TEST_F()115 EXPECT_FALSE(dst.has_layout()); in TEST_F()270 EXPECT_TRUE(shape.tuple_shapes(0).has_layout()); in TEST_F()271 EXPECT_TRUE(shape.tuple_shapes(2).tuple_shapes(1).has_layout()); in TEST_F()276 EXPECT_FALSE(shape.tuple_shapes(0).has_layout()); in TEST_F()277 EXPECT_FALSE(shape.tuple_shapes(2).tuple_shapes(1).has_layout()); in TEST_F()
53 if (shape_proto.has_layout()) { in Shape()72 if (has_layout()) { in ToProto()
124 bool has_layout() const { return layout_.format() != INVALID_FORMAT; } in has_layout() function
107 if (!shape.has_layout()) { in MakeShapeWithLayoutInternal()652 if (shape.has_layout()) { in ValidateShapeWithOptionalLayoutInternal()969 if (shape.has_layout()) { in PermuteDimensions()
276 ASSERT_TRUE(scalar_default_layout.has_layout()) in TEST()281 ASSERT_TRUE(scalar_empty_min2maj.has_layout()) in TEST()
157 if (input_shape.has_layout()) { in TEST_F()162 if (result_shape.has_layout()) { in TEST_F()226 if (input_shape.has_layout()) { in TEST_F()231 if (result_shape.has_layout()) { in TEST_F()308 if (input_shape.has_layout()) { in TEST_F()313 if (result_shape.has_layout()) { in TEST_F()
3767 CHECK(input_shape.has_layout()) << "LayoutAssignment or InstructionFusion " in EmitReductionToVector()
76 TF_ASSIGN_OR_RETURN(bool has_layout, MakeLayout(minor_to_major, &layout)); in AssignLayout()77 if (!has_layout && layout_func) { in AssignLayout()
754 CHECK(!lhs_shape.has_layout() || IsSimpleLayout(lhs_shape.layout())) in AreGemmShapes()756 CHECK(!rhs_shape.has_layout() || IsSimpleLayout(rhs_shape.layout())) in AreGemmShapes()758 CHECK(!output_shape.has_layout() || IsSimpleLayout(output_shape.layout())) in AreGemmShapes()886 CHECK(shape.has_layout() && in CollapseFirstNDims()
835 if (block->layout.has_layout() || block->layout.has_memory()) {1961 $$.merge_qualifier(& @1, state, $2, false, $2.has_layout());1977 $2.has_interpolation() || $2.has_layout())) {1995 $2.has_layout() || $2.has_auxiliary_storage())) {2699 block->layout.has_layout())) {
764 bool has_layout() const;
61 ast_type_qualifier::has_layout() const in has_layout() function in ast_type_qualifier
3797 if (qual->has_layout() && uses_deprecated_qualifier) { in apply_layout_qualifier_to_variable()
1493 TF_RET_CHECK(!subshape.has_layout()); in InferArrayLayout()1508 if (!source_buffer->shape().has_layout()) { in InferArrayLayout()1635 if (subshape->has_layout() || !subshape->IsArray()) { in AssignLayouts()
970 << (shape->has_layout() ? ShapeUtil::HumanStringWithLayout(*shape)985 << (shape->has_layout() ? ShapeUtil::HumanStringWithLayout(*shape)
1053 if (!mutable_array_subshape->has_layout() || in RelayoutConstant()