change INT8 to VPUX as first priority (#9261)
Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
This commit is contained in:
@@ -442,8 +442,13 @@ DeviceInformation MultiDeviceInferencePlugin::SelectDevice(const std::vector<Dev
|
||||
|
||||
// Priority of selecting device: dGPU > VPUX > iGPU > MYRIAD > CPU
|
||||
std::list<DeviceInformation> devices;
|
||||
devices.splice(devices.end(), dGPU);
|
||||
devices.splice(devices.end(), VPUX);
|
||||
if (networkPrecision == "INT8") {
|
||||
devices.splice(devices.end(), VPUX);
|
||||
devices.splice(devices.end(), dGPU);
|
||||
} else {
|
||||
devices.splice(devices.end(), dGPU);
|
||||
devices.splice(devices.end(), VPUX);
|
||||
}
|
||||
devices.splice(devices.end(), iGPU);
|
||||
devices.splice(devices.end(), MYRIAD);
|
||||
devices.splice(devices.end(), CPU);
|
||||
|
||||
@@ -48,7 +48,7 @@ const DeviceInformation MYRIAD_INFO = {CommonTestUtils::DEVICE_MYRIAD, {}, 2, "0
|
||||
const DeviceInformation KEEMBAY_INFO = {CommonTestUtils::DEVICE_KEEMBAY, {}, 2, "01", "VPUX_01" };
|
||||
const std::vector<DeviceInformation> fp32DeviceVector = {DGPU_INFO, IGPU_INFO, CPU_INFO, MYRIAD_INFO};
|
||||
const std::vector<DeviceInformation> fp16DeviceVector = {DGPU_INFO, IGPU_INFO, MYRIAD_INFO, CPU_INFO};
|
||||
const std::vector<DeviceInformation> int8DeviceVector = {KEEMBAY_INFO, CPU_INFO};
|
||||
const std::vector<DeviceInformation> int8DeviceVector = {KEEMBAY_INFO, DGPU_INFO, IGPU_INFO, CPU_INFO};
|
||||
const std::vector<DeviceInformation> binDeviceVector = {DGPU_INFO, IGPU_INFO, CPU_INFO};
|
||||
const std::vector<DeviceInformation> batchedblobDeviceVector = {DGPU_INFO, IGPU_INFO};
|
||||
std::map<std::string, const std::vector<DeviceInformation>> devicesMap = {{"FP32", fp32DeviceVector},
|
||||
@@ -161,7 +161,7 @@ public:
|
||||
plugin->SetCore(core);
|
||||
|
||||
IE_SET_METRIC(OPTIMIZATION_CAPABILITIES, cpuCability, {"FP32", "FP16", "INT8", "BIN"});
|
||||
IE_SET_METRIC(OPTIMIZATION_CAPABILITIES, gpuCability, {"FP32", "FP16", "BATCHED_BLOB", "BIN"});
|
||||
IE_SET_METRIC(OPTIMIZATION_CAPABILITIES, gpuCability, {"FP32", "FP16", "BATCHED_BLOB", "BIN", "INT8"});
|
||||
IE_SET_METRIC(OPTIMIZATION_CAPABILITIES, myriadCability, {"FP16"});
|
||||
IE_SET_METRIC(OPTIMIZATION_CAPABILITIES, vpuxCability, {"INT8"});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user