BATCH as the constants device name in test
This commit is contained in:
parent
6e0dfffb36
commit
84e858d636
@ -65,14 +65,16 @@ TEST_P(AutoBatching_Test, compareAutoBatchingToBatch1) {
|
|||||||
for (size_t i = 0; i < nets.size(); ++i) {
|
for (size_t i = 0; i < nets.size(); ++i) {
|
||||||
auto net = nets[i];
|
auto net = nets[i];
|
||||||
|
|
||||||
net.getInputsInfo().begin()->second->setLayout(Layout::NCHW);
|
// we test single inputs networks only
|
||||||
net.getInputsInfo().begin()->second->setPrecision(Precision::FP32);
|
auto inp = net.getInputsInfo().begin()->second;
|
||||||
|
inp->setLayout(Layout::NCHW);
|
||||||
|
inp->setPrecision(Precision::FP32);
|
||||||
std::map<std::string, std::string> config;
|
std::map<std::string, std::string> config;
|
||||||
if (device_name.find("GPU") != std::string::npos)
|
if (device_name.find("GPU") != std::string::npos)
|
||||||
config[CONFIG_KEY(GPU_THROUGHPUT_STREAMS)] = std::to_string(num_streams);
|
config[CONFIG_KEY(GPU_THROUGHPUT_STREAMS)] = std::to_string(num_streams);
|
||||||
if (device_name.find("CPU") != std::string::npos)
|
if (device_name.find("CPU") != std::string::npos)
|
||||||
config[CONFIG_KEY(CPU_THROUGHPUT_STREAMS)] = std::to_string(num_streams);
|
config[CONFIG_KEY(CPU_THROUGHPUT_STREAMS)] = std::to_string(num_streams);
|
||||||
auto exec_net_ref = ie.LoadNetwork(net, std::string("BATCH:") +
|
auto exec_net_ref = ie.LoadNetwork(net, std::string(CommonTestUtils::DEVICE_BATCH) +
|
||||||
device_name + "(" + std::to_string(num_batch) + ")",
|
device_name + "(" + std::to_string(num_batch) + ")",
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ const char DEVICE_AUTO[] = "AUTO";
|
|||||||
const char DEVICE_CPU[] = "CPU";
|
const char DEVICE_CPU[] = "CPU";
|
||||||
const char DEVICE_GNA[] = "GNA";
|
const char DEVICE_GNA[] = "GNA";
|
||||||
const char DEVICE_GPU[] = "GPU";
|
const char DEVICE_GPU[] = "GPU";
|
||||||
|
const char DEVICE_BATCH[] = "BATCH";
|
||||||
const char DEVICE_HDDL[] = "HDDL";
|
const char DEVICE_HDDL[] = "HDDL";
|
||||||
const char DEVICE_MYRIAD[] = "MYRIAD";
|
const char DEVICE_MYRIAD[] = "MYRIAD";
|
||||||
const char DEVICE_KEEMBAY[] = "VPUX";
|
const char DEVICE_KEEMBAY[] = "VPUX";
|
||||||
|
Loading…
Reference in New Issue
Block a user