Skip to content

Commit a4e9141

Browse files
authored
[core] Remove cache_model_path from config pass to device (#33037)
### Details: - Remove `ov::cache_model_path` from config passed to device on compile model. The property must be handled on core level only. ### Tickets: - CVS-177263 Signed-off-by: Pawel Raasz <pawel.raasz@intel.com>
1 parent 0e3f77a commit a4e9141

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/inference/src/dev/core_impl.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,10 @@ void clean_batch_properties(const std::string& device_name, ov::AnyMap& config,
206206
}
207207
}
208208

209-
static const auto core_properties_names =
210-
ov::util::make_array(ov::cache_dir.name(), ov::enable_mmap.name(), ov::force_tbb_terminate.name());
209+
static const auto core_properties_names = ov::util::make_array(ov::cache_dir.name(),
210+
ov::enable_mmap.name(),
211+
ov::force_tbb_terminate.name(),
212+
ov::cache_model_path.name());
211213

212214
static const auto auto_batch_properties_names =
213215
ov::util::make_array(ov::auto_batch_timeout.name(), ov::hint::allow_auto_batching.name());

src/inference/tests/functional/caching_test.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3043,7 +3043,10 @@ TEST_P(CachingTest, import_from_cache_model_by_custom_model_rt_info) {
30433043
});
30443044
MkDirGuard guard(m_cacheDir);
30453045
EXPECT_CALL(*mockPlugin, compile_model(_, _, _)).Times(0);
3046-
EXPECT_CALL(*mockPlugin, compile_model(A<const std::shared_ptr<const ov::Model>&>(), _)).Times(1);
3046+
EXPECT_CALL(
3047+
*mockPlugin,
3048+
compile_model(A<const std::shared_ptr<const ov::Model>&>(), Not(Contains(Key(ov::cache_model_path.name())))))
3049+
.Times(1);
30473050
EXPECT_CALL(*mockPlugin, import_model(A<std::istream&>(), _, _)).Times(1);
30483051
EXPECT_CALL(*mockPlugin, import_model(A<std::istream&>(), _)).Times(1);
30493052
EXPECT_CALL(*mockPlugin, import_model(A<const ov::Tensor&>(), _, _)).Times(0);

0 commit comments

Comments
 (0)