We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 628868b commit c5ae69eCopy full SHA for c5ae69e
onnxruntime/core/providers/openvino/contexts.h
@@ -65,9 +65,7 @@ class SharedContext : public WeakSingleton<SharedContext> {
65
metadata.clear();
66
metadata_filepath.clear();
67
external_weight_filename.clear();
68
- if (mapped_weights) {
69
- delete mapped_weights.release();
70
- }
+ mapped_weights.reset();
71
}
72
73
fs::path external_weight_filename;
@@ -76,7 +74,7 @@ class SharedContext : public WeakSingleton<SharedContext> {
76
74
fs::path metadata_filepath;
77
75
} shared_weights;
78
79
- void clear(){
+ void clear() {
80
shared_weights.clear();
81
82
};
0 commit comments