RKNN export clean up (#18841)

This commit is contained in:
Laughing 2025-01-23 20:28:41 +08:00 committed by GitHub
parent 729ef7f270
commit d6272f258e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 9 deletions

View file

@ -482,7 +482,7 @@ class AutoBackend(nn.Module):
w = next(w.rglob("*.rknn")) # get *.rknn file from *_rknn_model dir
rknn_model = RKNNLite()
rknn_model.load_rknn(w)
ret = rknn_model.init_runtime()
rknn_model.init_runtime()
metadata = Path(w).parent / "metadata.yaml"
# Any other format (unsupported)