MCPcopy Create free account
hub / github.com/ARM-software/armnn / parseShape

Function parseShape

include/armnn/Numpy.hpp:147–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 }
146
147 inline void parseShape(Header& header, std::string& shapeString)
148 {
149 std::istringstream shapeStringStream(shapeString);
150 std::string token;
151 while(getline(shapeStringStream, token, ','))
152 {
153 header.m_Shape.push_back(static_cast<uint32_t >(std::stoi(token)));
154 }
155 }
156
157 inline void CreateHeader(std::ifstream& ifStream, HeaderInfo& headerInfo, Header& header)
158 {

Callers 1

CreateHeaderFunction · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected