Home
last modified time | relevance | path

Searched refs:Layout (Results 1 – 25 of 853) sorted by relevance

12345678910>>...35

/external/tensorflow/tensorflow/compiler/xla/
Dlayout_test.cc35 EXPECT_EQ(Layout().ToString(), "invalid{}"); in TEST_F()
36 EXPECT_EQ(Layout({4, 5, 6}).ToString(), "{4,5,6}"); in TEST_F()
37 EXPECT_EQ(Layout({4, 5, 6}).ToString(), "{4,5,6}"); in TEST_F()
38 EXPECT_EQ(Layout({3, 2, 1, 0}, {Tile({42, 123}), Tile({4, 5})}).ToString(), in TEST_F()
41 Layout({1, 0}, {Tile({2, 55})}).set_element_size_in_bits(42).ToString(), in TEST_F()
43 EXPECT_EQ(Layout({3, 2, 1, 0}, {Tile({42, 123}), Tile({4, 5})}) in TEST_F()
48 Layout({1, 0}, {Tile({-2, 55})}).set_element_size_in_bits(42).ToString(), in TEST_F()
61 oss << Layout({0, 1, 2}); in TEST_F()
67 EXPECT_EQ(Layout(), Layout()); in TEST_F()
69 EXPECT_EQ(Layout(empty_dims), Layout(empty_dims)); in TEST_F()
[all …]
Dlayout_util.h39 static Layout MakeLayout(absl::Span<const int64> minor_to_major,
45 static Layout MakeLayoutFromMajorToMinor(
50 static Layout MakeDescendingLayout(int64 rank);
54 static Layout MakeAscendingLayout(int64 rank);
57 static Layout GetDefaultLayoutForShape(const Shape& shape);
60 static Layout GetDefaultLayoutForRank(int64 rank);
61 static Layout GetDefaultLayoutForR2();
62 static Layout GetDefaultLayoutForR3();
63 static Layout GetDefaultLayoutForR4();
84 static Status ValidateLayoutForShape(const Layout& layout,
[all …]
Dlayout.h82 class Layout {
84 Layout() = default;
87 explicit Layout(absl::Span<const int64> minor_to_major) in Layout() function
93 Layout(absl::Span<const int64> minor_to_major, absl::Span<const Tile> tiles,
102 static Layout CreateFromProto(const LayoutProto& proto);
124 bool operator()(const Layout& lhs, const Layout& rhs);
154 bool operator==(const Layout& other) const;
155 bool operator!=(const Layout& other) const { return !(*this == other); }
166 Layout& set_format(Format value) { in set_format()
174 Layout& set_minor_to_major(int index, int64 value) { in set_minor_to_major()
[all …]
Dlayout_util.cc58 /* static */ Layout LayoutUtil::MakeLayout( in MakeLayout()
61 Layout layout; in MakeLayout()
81 /* static */ Layout LayoutUtil::MakeDescendingLayout(int64 rank) { in MakeDescendingLayout()
87 /* static */ Layout LayoutUtil::MakeAscendingLayout(int64 rank) { in MakeAscendingLayout()
93 /* static */ Layout LayoutUtil::MakeLayoutFromMajorToMinor( in MakeLayoutFromMajorToMinor()
95 Layout layout; in MakeLayoutFromMajorToMinor()
106 Layout CreateDefaultLayoutForRank(int64 rank) { in CreateDefaultLayoutForRank()
107 Layout layout; in CreateDefaultLayoutForRank()
117 /* static */ Layout LayoutUtil::GetDefaultLayoutForShape(const Shape& shape) { in GetDefaultLayoutForShape()
120 return Layout(); in GetDefaultLayoutForShape()
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dshape.cc30 template <Layout T>
38 template <Layout T>
46 template <Layout T>
78 std::string ToString(Layout layout) { in ToString()
80 case Layout::SCALAR: in ToString()
82 case Layout::LINEAR: in ToString()
84 case Layout::HW: in ToString()
86 case Layout::HWD: in ToString()
88 case Layout::CHW: in ToString()
90 case Layout::HWC: in ToString()
[all …]
Dshape.h47 enum class Layout { enum
65 std::string ToString(Layout l);
68 template <Layout T>
72 int Size(Layout layout);
75 template <Layout T>
79 Axis GetAxis(Layout layout, int32_t index);
82 template <Layout T>
86 int GetAxisIndex(Layout layout, Axis axis);
89 template <Layout T>
93 bool HasAxis(Layout layout, Axis axis);
[all …]
/external/llvm-project/llvm/tools/llvm-pdbutil/
DPrettyClassDefinitionDumper.cpp33 ClassLayout Layout(Class); in start() local
34 start(Layout); in start()
37 void ClassDefinitionDumper::start(const ClassLayout &Layout) { in start() argument
38 prettyPrintClassIntro(Layout); in start()
41 DumpedAnything |= Dumper.start(Layout); in start()
43 prettyPrintClassOutro(Layout); in start()
46 void ClassDefinitionDumper::prettyPrintClassIntro(const ClassLayout &Layout) { in prettyPrintClassIntro() argument
50 uint32_t Size = Layout.getSize(); in prettyPrintClassIntro()
51 const PDBSymbolTypeUDT &Class = Layout.getClass(); in prettyPrintClassIntro()
53 if (Layout.getClass().isConstType()) in prettyPrintClassIntro()
[all …]
DPrettyClassLayoutGraphicalDumper.cpp34 bool PrettyClassLayoutGraphicalDumper::start(const UDTLayoutBase &Layout) { in start() argument
38 for (auto &Other : Layout.other_items()) in start()
40 for (auto &Func : Layout.funcs()) in start()
44 const BitVector &UseMap = Layout.usedBytes(); in start()
47 for (auto &Item : Layout.layout_items()) { in start()
68 VTableLayoutItem &Layout = static_cast<VTableLayoutItem &>(*CurrentItem); in start() local
71 VarDumper.startVbptr(CurrentAbsoluteOffset, Layout.getSize()); in start()
84 auto TailPadding = Layout.tailPadding(); in start()
86 if (TailPadding != 1 || Layout.getSize() != 1) { in start()
112 BaseClassLayout &Layout = static_cast<BaseClassLayout &>(*CurrentItem); in dump() local
[all …]
/external/llvm-project/llvm/lib/DebugInfo/PDB/Native/
DDbiModuleDescriptorBuilder.cpp43 ::memset(&Layout, 0, sizeof(Layout)); in DbiModuleDescriptorBuilder()
44 Layout.Mod = ModIndex; in DbiModuleDescriptorBuilder()
50 return Layout.ModDiStream; in getStreamIndex()
63 Layout.SC = SC; in setFirstSectionContrib()
98 uint32_t L = sizeof(Layout); in calculateSerializedLength()
105 Layout.FileNameOffs = 0; // TODO: Fix this in finalize()
106 Layout.Flags = 0; // TODO: Fix this in finalize()
107 Layout.C11Bytes = 0; in finalize()
108 Layout.C13Bytes = calculateC13DebugInfoSize(); in finalize()
109 (void)Layout.Mod; // Set in constructor in finalize()
[all …]
DDbiModuleDescriptor.cpp24 if (auto EC = Reader.readObject(Info.Layout)) in initialize()
36 return (Layout->Flags & ModInfoFlags::HasECFlagMask) != 0; in hasECInfo()
40 return (Layout->Flags & ModInfoFlags::TypeServerIndexMask) >> in getTypeServerIndex()
45 return Layout->SC; in getSectionContrib()
49 return Layout->ModDiStream; in getModuleStreamIndex()
53 return Layout->SymBytes; in getSymbolDebugInfoByteSize()
57 return Layout->C11Bytes; in getC11LineInfoByteSize()
61 return Layout->C13Bytes; in getC13LineInfoByteSize()
65 return Layout->NumFiles; in getNumberOfFiles()
69 return Layout->SrcFileNameNI; in getSourceFileNameIndex()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/
DDbiModuleDescriptorBuilder.cpp43 ::memset(&Layout, 0, sizeof(Layout)); in DbiModuleDescriptorBuilder()
44 Layout.Mod = ModIndex; in DbiModuleDescriptorBuilder()
50 return Layout.ModDiStream; in getStreamIndex()
63 Layout.SC = SC; in setFirstSectionContrib()
99 uint32_t L = sizeof(Layout); in calculateSerializedLength()
106 Layout.FileNameOffs = 0; // TODO: Fix this in finalize()
107 Layout.Flags = 0; // TODO: Fix this in finalize()
108 Layout.C11Bytes = 0; in finalize()
109 Layout.C13Bytes = calculateC13DebugInfoSize(); in finalize()
110 (void)Layout.Mod; // Set in constructor in finalize()
[all …]
DDbiModuleDescriptor.cpp24 if (auto EC = Reader.readObject(Info.Layout)) in initialize()
36 return (Layout->Flags & ModInfoFlags::HasECFlagMask) != 0; in hasECInfo()
40 return (Layout->Flags & ModInfoFlags::TypeServerIndexMask) >> in getTypeServerIndex()
45 return Layout->SC; in getSectionContrib()
49 return Layout->ModDiStream; in getModuleStreamIndex()
53 return Layout->SymBytes; in getSymbolDebugInfoByteSize()
57 return Layout->C11Bytes; in getC11LineInfoByteSize()
61 return Layout->C13Bytes; in getC13LineInfoByteSize()
65 return Layout->NumFiles; in getNumberOfFiles()
69 return Layout->SrcFileNameNI; in getSourceFileNameIndex()
[all …]
/external/llvm/lib/MC/
DMCAssembler.cpp169 bool MCAssembler::evaluateFixup(const MCAsmLayout &Layout, in evaluateFixup() argument
178 if (!Expr->evaluateAsRelocatable(Target, &Layout, &Fixup)) { in evaluateFixup()
214 Value += Layout.getSymbolOffset(Sym); in evaluateFixup()
219 Value -= Layout.getSymbolOffset(Sym); in evaluateFixup()
229 uint32_t Offset = Layout.getFragmentOffset(DF) + Fixup.getOffset(); in evaluateFixup()
239 Backend.processFixupValue(*this, Layout, Fixup, DF, Target, Value, in evaluateFixup()
245 uint64_t MCAssembler::computeFragmentSize(const MCAsmLayout &Layout, in computeFragmentSize() argument
265 unsigned Offset = Layout.getFragmentOffset(&AF); in computeFragmentSize()
281 if (!OF.getOffset().evaluateAsValue(Value, Layout)) in computeFragmentSize()
285 uint64_t FragmentOffset = Layout.getFragmentOffset(&OF); in computeFragmentSize()
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dtensor_test.cc93 BHWC(1, 6, 7, 3), {data_type, storage_type, Layout::HWC}, env)); in TensorTests()
95 BHWC(1, 1, 4, 12), {data_type, storage_type, Layout::HWC}, env)); in TensorTests()
97 BHWC(1, 6, 1, 7), {data_type, storage_type, Layout::HWC}, env)); in TensorTests()
101 BHWC(2, 6, 7, 3), {data_type, storage_type, Layout::BHWC}, env)); in TensorTests()
103 BHWC(4, 1, 4, 12), {data_type, storage_type, Layout::BHWC}, env)); in TensorTests()
105 BHWC(7, 6, 1, 7), {data_type, storage_type, Layout::BHWC}, env)); in TensorTests()
107 BHWC(13, 7, 3, 3), {data_type, storage_type, Layout::BHWC}, env)); in TensorTests()
111 BHWDC(1, 6, 7, 4, 3), {data_type, storage_type, Layout::HWDC}, env)); in TensorTests()
113 BHWDC(1, 1, 4, 3, 12), {data_type, storage_type, Layout::HWDC}, env)); in TensorTests()
115 BHWDC(1, 6, 1, 7, 7), {data_type, storage_type, Layout::HWDC}, env)); in TensorTests()
[all …]
/external/skia/include/sksl/
DDSLLayout.h23 return this->flag(SkSL::Layout::kOriginUpperLeft_Flag, "origin_upper_left", pos);
27 return this->flag(SkSL::Layout::kOverrideCoverage_Flag, "override_coverage", pos);
31 return this->flag(SkSL::Layout::kPushConstant_Flag, "push_constant", pos);
35 return this->flag(SkSL::Layout::kBlendSupportAllEquations_Flag,
40 return this->flag(SkSL::Layout::kSRGBUnpremul_Flag, "srgb_unpremul", pos);
44 return this->intValue(&fSkSLLayout.fLocation, location, SkSL::Layout::kLocation_Flag,
49 return this->intValue(&fSkSLLayout.fOffset, offset, SkSL::Layout::kOffset_Flag, "offset",
54 return this->intValue(&fSkSLLayout.fBinding, binding, SkSL::Layout::kBinding_Flag,
59 return this->intValue(&fSkSLLayout.fIndex, index, SkSL::Layout::kIndex_Flag, "index", pos);
63 return this->intValue(&fSkSLLayout.fSet, set, SkSL::Layout::kSet_Flag, "set", pos);
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCAssembler.cpp191 bool MCAssembler::evaluateFixup(const MCAsmLayout &Layout, in evaluateFixup() argument
207 if (!Expr->evaluateAsRelocatable(Target, &Layout, &Fixup)) { in evaluateFixup()
224 return getBackend().evaluateTargetFixup(*this, Layout, Fixup, DF, Target, in evaluateFixup()
257 Value += Layout.getSymbolOffset(Sym); in evaluateFixup()
262 Value -= Layout.getSymbolOffset(Sym); in evaluateFixup()
271 uint32_t Offset = Layout.getFragmentOffset(DF) + Fixup.getOffset(); in evaluateFixup()
288 uint64_t MCAssembler::computeFragmentSize(const MCAsmLayout &Layout, in computeFragmentSize() argument
301 if (!FF.getNumValues().evaluateAsAbsolute(NumValues, Layout)) { in computeFragmentSize()
325 unsigned Offset = Layout.getFragmentOffset(&AF); in computeFragmentSize()
348 if (!OF.getOffset().evaluateAsValue(Value, Layout)) { in computeFragmentSize()
[all …]
/external/llvm-project/llvm/lib/MC/
DMCAssembler.cpp192 bool MCAssembler::evaluateFixup(const MCAsmLayout &Layout, in evaluateFixup() argument
208 if (!Expr->evaluateAsRelocatable(Target, &Layout, &Fixup)) { in evaluateFixup()
225 return getBackend().evaluateTargetFixup(*this, Layout, Fixup, DF, Target, in evaluateFixup()
258 Value += Layout.getSymbolOffset(Sym); in evaluateFixup()
263 Value -= Layout.getSymbolOffset(Sym); in evaluateFixup()
272 uint32_t Offset = Layout.getFragmentOffset(DF) + Fixup.getOffset(); in evaluateFixup()
289 uint64_t MCAssembler::computeFragmentSize(const MCAsmLayout &Layout, in computeFragmentSize() argument
302 if (!FF.getNumValues().evaluateAsAbsolute(NumValues, Layout)) { in computeFragmentSize()
329 unsigned Offset = Layout.getFragmentOffset(&AF); in computeFragmentSize()
352 if (!OF.getOffset().evaluateAsValue(Value, Layout)) { in computeFragmentSize()
[all …]
/external/angle/src/compiler/translator/TranslatorMetalDirect/
DLayout.h41 struct Layout struct
46 static Layout Identity() { return {0, 1}; } in Identity() argument
47 static Layout Invalid() { return {0, 0}; } in Invalid() argument
48 static Layout Both(size_t n) { return {n, n}; } in Both() argument
52 bool operator==(const Layout &other) const;
54 void operator+=(const Layout &other);
57 Layout operator+(const Layout &other) const;
58 Layout operator*(size_t scale) const;
71 ANGLE_NO_DISCARD Layout MetalLayoutOf(const TType &type, MetalLayoutOfConfig config = {});
74 ANGLE_NO_DISCARD Layout
[all …]
DLayout.cpp33 void Layout::requireAlignment(size_t align, bool pad) in requireAlignment()
42 bool Layout::operator==(const Layout &other) const in operator ==()
47 void Layout::operator+=(const Layout &other) in operator +=()
53 void Layout::operator*=(size_t scale) in operator *=()
58 Layout Layout::operator+(const Layout &other) const in operator +()
65 Layout Layout::operator*(size_t scale) const in operator *()
72 static Layout ScalarLayoutOf(const TType &type, Language language) in ScalarLayoutOf()
95 return Layout::Invalid(); in ScalarLayoutOf()
102 Layout sh::MetalLayoutOf(const TType &type, MetalLayoutOfConfig config) in MetalLayoutOf()
115 const Layout layout = MetalLayoutOf(type, config); in MetalLayoutOf()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/MSF/
DMappedBlockStream.cpp46 const MSFStreamLayout &Layout, in MappedBlockStream() argument
49 : BlockSize(BlockSize), StreamLayout(Layout), MsfData(MsfData), in MappedBlockStream()
53 uint32_t BlockSize, const MSFStreamLayout &Layout, BinaryStreamRef MsfData, in createStream() argument
56 BlockSize, Layout, MsfData, Allocator); in createStream()
60 const MSFLayout &Layout, BinaryStreamRef MsfData, uint32_t StreamIndex, in createIndexedStream() argument
62 assert(StreamIndex < Layout.StreamMap.size() && "Invalid stream index"); in createIndexedStream()
64 SL.Blocks = Layout.StreamMap[StreamIndex]; in createIndexedStream()
65 SL.Length = Layout.StreamSizes[StreamIndex]; in createIndexedStream()
67 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream()
71 MappedBlockStream::createDirectoryStream(const MSFLayout &Layout, in createDirectoryStream() argument
[all …]
/external/llvm-project/llvm/lib/DebugInfo/MSF/
DMappedBlockStream.cpp46 const MSFStreamLayout &Layout, in MappedBlockStream() argument
49 : BlockSize(BlockSize), StreamLayout(Layout), MsfData(MsfData), in MappedBlockStream()
53 uint32_t BlockSize, const MSFStreamLayout &Layout, BinaryStreamRef MsfData, in createStream() argument
56 BlockSize, Layout, MsfData, Allocator); in createStream()
60 const MSFLayout &Layout, BinaryStreamRef MsfData, uint32_t StreamIndex, in createIndexedStream() argument
62 assert(StreamIndex < Layout.StreamMap.size() && "Invalid stream index"); in createIndexedStream()
64 SL.Blocks = Layout.StreamMap[StreamIndex]; in createIndexedStream()
65 SL.Length = Layout.StreamSizes[StreamIndex]; in createIndexedStream()
67 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream()
71 MappedBlockStream::createDirectoryStream(const MSFLayout &Layout, in createDirectoryStream() argument
[all …]
/external/llvm/lib/DebugInfo/PDB/Raw/
DModInfo.cpp70 ModInfo::ModInfo() : Layout(nullptr) {} in ModInfo()
74 Layout(Info.Layout) {} in ModInfo()
80 if (auto EC = Reader.readObject(Info.Layout)) in initialize()
91 bool ModInfo::hasECInfo() const { return (Layout->Flags & HasECFlagMask) != 0; } in hasECInfo()
94 return (Layout->Flags & TypeServerIndexMask) >> TypeServerIndexShift; in getTypeServerIndex()
97 uint16_t ModInfo::getModuleStreamIndex() const { return Layout->ModDiStream; } in getModuleStreamIndex()
100 return Layout->SymBytes; in getSymbolDebugInfoByteSize()
103 uint32_t ModInfo::getLineInfoByteSize() const { return Layout->LineBytes; } in getLineInfoByteSize()
105 uint32_t ModInfo::getC13LineInfoByteSize() const { return Layout->C13Bytes; } in getC13LineInfoByteSize()
107 uint32_t ModInfo::getNumberOfFiles() const { return Layout->NumFiles; } in getNumberOfFiles()
[all …]
/external/skia/src/sksl/
DSkSLCPPUniformCTypes.cpp98 Layout::CType ctype, const std::vector<String>& skslTypes, in UniformCTypeMapper()
130 static UniformCTypeMapper register_array(Layout::CType ctype, const std::vector<String>& skslTypes, in register_array()
137 static UniformCTypeMapper register_array(Layout::CType ctype, const std::vector<String>& skslTypes, in register_array()
144 static UniformCTypeMapper register_type(Layout::CType ctype, const std::vector<String>& skslTypes, in register_type()
151 static UniformCTypeMapper register_type(Layout::CType ctype, const std::vector<String>& skslTypes, in register_type()
162 register_type(Layout::CType::kSkRect, { "half4", "float4", "double4" }, in get_mappers()
167 register_type(Layout::CType::kSkIRect, { "int4", "short4", "byte4" }, in get_mappers()
172 register_type(Layout::CType::kSkPMColor4f, { "half4", "float4", "double4" }, in get_mappers()
176 register_type(Layout::CType::kSkV4, { "half4", "float4", "double4" }, in get_mappers()
181 register_array(Layout::CType::kSkPoint, { "half2", "float2", "double2" } , in get_mappers()
[all …]
/external/rust/crates/hashbrown/src/raw/
Dalloc.rs5 use crate::alloc::alloc::Layout;
10 pub fn do_alloc<A: Allocator>(alloc: &A, layout: Layout) -> Result<NonNull<u8>, ()> { in do_alloc()
20 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, core::alloc::AllocError> { in allocate()
27 unsafe fn deallocate(&self, _ptr: NonNull<u8>, _layout: Layout) {} in deallocate() argument
33 use crate::alloc::alloc::{alloc, dealloc, Layout};
37 fn allocate(&self, layout: Layout) -> Result<NonNull<u8>, ()>; in allocate()
38 unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout); in deallocate() argument
45 fn allocate(&self, layout: Layout) -> Result<NonNull<u8>, ()> { in allocate()
49 unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) { in deallocate() argument
60 pub fn do_alloc<A: Allocator>(alloc: &A, layout: Layout) -> Result<NonNull<u8>, ()> { in do_alloc()
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/common/tasks/
Delementwise_test_util.cc38 op_def.src_tensors.push_back({data_type, storage, Layout::HWC}); in AbsTest()
39 op_def.dst_tensors.push_back({data_type, storage, Layout::HWC}); in AbsTest()
65 op_def.src_tensors.push_back({data_type, storage, Layout::HWC}); in CosTest()
66 op_def.dst_tensors.push_back({data_type, storage, Layout::HWC}); in CosTest()
91 op_def.src_tensors.push_back({data_type, storage, Layout::HWC}); in CopyTest()
92 op_def.dst_tensors.push_back({data_type, storage, Layout::HWC}); in CopyTest()
116 op_def.src_tensors.push_back({data_type, storage, Layout::HWC}); in EluTest()
117 op_def.dst_tensors.push_back({data_type, storage, Layout::HWC}); in EluTest()
144 op_def.src_tensors.push_back({data_type, storage, Layout::HWC}); in ExpTest()
145 op_def.dst_tensors.push_back({data_type, storage, Layout::HWC}); in ExpTest()
[all …]

12345678910>>...35