1 #ifndef _NNDEPLOY_DEVICE_UTIL_H_
2 #define _NNDEPLOY_DEVICE_UTIL_H_
10 if (stream_map.find(index) == stream_map.end()) {
11 stream_map[index] = stream;
14 if (index == INT_MAX - 1) {
24 auto iter = stream_map.end();
27 int stream_index = iter->first;
int updateStreamIndex(std::map< int, T > &stream_map)
base::Status insertStream(int &index, std::map< int, T > &stream_map, const T &stream)