MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / FindDimIndex

Function FindDimIndex

src/nvcv/src/priv/TensorLayout.cpp:92–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92int FindDimIndex(const NVCVTensorLayout &layout, char dimLabel)
93{
94 if (const void *p = memchr(layout.data, dimLabel, layout.rank))
95 {
96 return std::distance(reinterpret_cast<const std::byte *>(layout.data), reinterpret_cast<const std::byte *>(p));
97 }
98 else
99 {
100 return -1;
101 }
102}
103
104bool IsChannelLast(const NVCVTensorLayout &layout)
105{

Callers 1

PermuteShapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected