[Other] Optimize rknpu2 backend (#1318)

* Optimize rknpu2 backend

* Fix error

* Fix comparision error
This commit is contained in:
Jason
2023-02-15 11:11:37 +08:00
committed by GitHub
parent a5d23c57d0
commit 7a4b2f3177
8 changed files with 79 additions and 60 deletions

View File

@@ -207,7 +207,7 @@ template <typename T>
std::string Str(const std::vector<T>& shape) {
std::ostringstream oss;
oss << "[ " << shape[0];
for (int i = 1; i < shape.size(); ++i) {
for (size_t i = 1; i < shape.size(); ++i) {
oss << " ," << shape[i];
}
oss << " ]";