Xuejun/remove api in ov any (#15667)
* [Remove APIs] remove ov::any api & Signed-off-by: xuejun <Xuejun.Zhai@intel.com> * [Remove APIs] remove ov::any api Signed-off-by: xuejun <Xuejun.Zhai@intel.com> * [Remove APIs] remove interfaces in ov::any Base* operator->() & const Base* operator->() Signed-off-by: xuejun <Xuejun.Zhai@intel.com> * [Remove APIs] remove ov::any interfaces Base* get() & const Base* get() Signed-off-by: xuejun <Xuejun.Zhai@intel.com> * [Remove APIs] remove ov::any interfaces call(const Any& any) & dynamic_pointer_cast(const ::ov::Any& any) & static_pointer_cast(const ::ov::Any& any) Signed-off-by: xuejun <Xuejun.Zhai@intel.com> * [Remove APIs] fix code format issues in ov::any Signed-off-by: xuejun <Xuejun.Zhai@intel.com> * [Remove APIs] fix review issue Signed-off-by: xuejun <xuejun.zhai@intel.com> * [Remove APIs] clear code Signed-off-by: xuejun <xuejun.zhai@intel.com> * [Remove APIs] fix review issue Signed-off-by: xuejun <xuejun.zhai@intel.com> * [Remove APIs] fix compiler issue Signed-off-by: xuejun <xuejun.zhai@intel.com> * [Remove APIs] fix compiler issue Signed-off-by: xuejun <xuejun.zhai@intel.com> * [Remove APIs] fix compiler issue Signed-off-by: xuejun <xuejun.zhai@intel.com> * Fix variant error Signed-off-by: xuejun <xuejun.zhai@intel.com> --------- Signed-off-by: xuejun <Xuejun.Zhai@intel.com> Signed-off-by: xuejun <xuejun.zhai@intel.com>
This commit is contained in:
@@ -420,7 +420,7 @@ auto StringRightTrim = [](std::string string, std::string substring, bool case_s
|
||||
Parameter Plugin::GetMetric(const std::string& name, const std::map<std::string, Parameter>& options) const {
|
||||
OV_ITT_SCOPED_TASK(itt::domains::intel_gpu_plugin, "Plugin::GetMetric");
|
||||
GPU_DEBUG_GET_INSTANCE(debug_config);
|
||||
std::string device_id = GetConfig(ov::device::id.name(), options);
|
||||
auto device_id = GetConfig(ov::device::id.name(), options).as<std::string>();
|
||||
|
||||
auto iter = device_map.find(std::to_string(cldnn::device_query::device_id));
|
||||
if (iter == device_map.end())
|
||||
@@ -611,7 +611,7 @@ std::vector<std::string> Plugin::get_device_capabilities(const cldnn::device_inf
|
||||
|
||||
uint32_t Plugin::get_max_batch_size(const std::map<std::string, Parameter>& options) const {
|
||||
GPU_DEBUG_GET_INSTANCE(debug_config);
|
||||
std::string device_id = GetConfig(ov::device::id.name(), options);
|
||||
auto device_id = GetConfig(ov::device::id.name(), options).as<std::string>();
|
||||
auto context = m_default_contexts.at(device_id)->get_impl();
|
||||
const auto& device_info = context->get_engine().get_device_info();
|
||||
const auto& config = m_configs_map.at(device_id);
|
||||
@@ -643,7 +643,7 @@ uint32_t Plugin::get_max_batch_size(const std::map<std::string, Parameter>& opti
|
||||
} else if (it_streams->second.is<uint32_t>()) {
|
||||
n_streams = it_streams->second.as<uint32_t>();
|
||||
} else if (it_streams->second.is<std::string>()) {
|
||||
std::string n_streams_str = it_streams->second.as<std::string>();
|
||||
auto n_streams_str = it_streams->second.as<std::string>();
|
||||
if (n_streams_str != CONFIG_VALUE(GPU_THROUGHPUT_AUTO) &&
|
||||
n_streams_str != util::to_string(ov::streams::AUTO)) {
|
||||
IE_THROW() << "[GPU_MAX_BATCH_SIZE] bad casting: GPU_THROUGHPUT_STREAMS should be either of uint32_t type or \"GPU_THROUGHPUT_AUTO\"";
|
||||
@@ -761,7 +761,7 @@ uint32_t Plugin::get_max_batch_size(const std::map<std::string, Parameter>& opti
|
||||
}
|
||||
|
||||
uint32_t Plugin::get_optimal_batch_size(const std::map<std::string, Parameter>& options) const {
|
||||
std::string device_id = GetConfig(ov::device::id.name(), options);
|
||||
auto device_id = GetConfig(ov::device::id.name(), options).as<std::string>();
|
||||
auto context = m_default_contexts.at(device_id)->get_impl();
|
||||
const auto& device_info = context->get_engine().get_device_info();
|
||||
auto next_pow_of_2 = [] (float x) {
|
||||
|
||||
Reference in New Issue
Block a user