Lines Matching refs:std

109 std::vector<uint32_t> getAlignedDimensions(const std::vector<uint32_t>& dims, uint32_t N) {  in getAlignedDimensions()
113 std::vector<uint32_t> dimensions(N - dims.size(), 1); in getAlignedDimensions()
118 std::vector<RunTimePoolInfo> mapPools(const hidl_vec<hidl_memory>& pools) { in mapPools()
119 std::vector<RunTimePoolInfo> poolInfos; in mapPools()
129 std::unordered_set<uint32_t> getPoolIndexes(const std::vector<RequestArgument>& inputsOutputs) { in getPoolIndexes()
130 std::unordered_set<uint32_t> indexes; in getPoolIndexes()
153 const std::vector<RunTimePoolInfo>& pools) { in getData()
192 hexagon_nn_output make_hexagon_nn_output(const std::vector<uint32_t>& dims, uint32_t size) { in make_hexagon_nn_output()
193 std::vector<uint32_t> alignedDims = getAlignedDimensions(dims, 4); in make_hexagon_nn_output()
195 .rank = std::min(8u, static_cast<uint32_t>(alignedDims.size())), in make_hexagon_nn_output()
208 std::string toString(uint32_t val) { in toString()
209 return std::to_string(val); in toString()
212 std::string toString(float val) { in toString()
213 return std::to_string(val); in toString()
216 std::string toString(hexagon_nn_nn_id id) { in toString()
217 return std::to_string(static_cast<int32_t>(id)); in toString()
220 std::string toString(op_type op) { in toString()
231 std::string toString(hexagon_nn_padding_type padding) { in toString()
245 std::string toString(const hexagon_nn_input& input) { in toString()
246 return "hexagon_nn_input{.src_id: " + std::to_string(input.src_id) + in toString()
247 ", .output_idx: " + std::to_string(input.output_idx) + "}"; in toString()
250 std::string toString(const hexagon_nn_output& output) { in toString()
251 return "hexagon_nn_output{.rank: " + std::to_string(output.rank) + ", .max_sizes: [" + in toString()
252 std::to_string(output.max_sizes[0]) + ", " + std::to_string(output.max_sizes[1]) + ", " + in toString()
253 std::to_string(output.max_sizes[2]) + ", " + std::to_string(output.max_sizes[3]) + ", " + in toString()
254 std::to_string(output.max_sizes[4]) + ", " + std::to_string(output.max_sizes[5]) + ", " + in toString()
255 std::to_string(output.max_sizes[6]) + ", " + std::to_string(output.max_sizes[7]) + "]" + in toString()
256 ", .elementsize: " + std::to_string(output.elementsize) + in toString()
257 ", .zero_offset: " + std::to_string(output.zero_offset) + in toString()
258 ", .stepsize: " + std::to_string(output.stepsize) + "}"; in toString()
261 std::string toString(const hexagon_nn_tensordef& tensordef) { in toString()
262 return "hexagon_nn_tensordef{.batches: " + std::to_string(tensordef.batches) + in toString()
263 ", .height: " + std::to_string(tensordef.height) + in toString()
264 ", .width: " + std::to_string(tensordef.width) + in toString()
265 ", .depth: " + std::to_string(tensordef.depth) + in toString()
266 ", .data: " + std::to_string(reinterpret_cast<uintptr_t>(tensordef.data)) + in toString()
267 ", .dataLen: " + std::to_string(tensordef.dataLen) + in toString()
268 ", .data_valid_len: " + std::to_string(tensordef.data_valid_len) + in toString()
269 ", .unused: " + std::to_string(tensordef.unused) + "}"; in toString()
272 std::string toString(const hexagon_nn_perfinfo& perfinfo) { in toString()
273 return "hexagon_nn_perfinfo{.node_id: " + std::to_string(perfinfo.node_id) + in toString()
274 ", .executions: " + std::to_string(perfinfo.executions) + in toString()
275 ", .counter_lo: " + std::to_string(perfinfo.counter_lo) + in toString()
276 ", .counter_hi: " + std::to_string(perfinfo.counter_hi) + "}"; in toString()
279 std::string toString(const ::android::nn::Shape& shape) { in toString()
282 ", .scale: " + std::to_string(shape.scale) + in toString()
283 ", .zeroPoint: " + std::to_string(shape.offset) + "}"; in toString()