fixed unit tests to accomodate auto-reshaping graphs, to unlock full validation (#1795)
This commit is contained in:
parent
0aead5c070
commit
e8a178e196
|
|
@ -16,7 +16,7 @@ using namespace mkldnn;
|
|||
class MKLDNNTestExecNetwork: public MKLDNNPlugin::MKLDNNExecNetwork {
|
||||
public:
|
||||
MKLDNNPlugin::MKLDNNGraph& getGraph() {
|
||||
return *(_graphs.begin()->get());
|
||||
return *(_graphs.begin()->begin()->second);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1198,7 +1198,7 @@ TEST_F(MKLDNNGraphStructureTests, TestOutputAfterInplacePlusConcat) {
|
|||
InferenceEngine::Core core;
|
||||
InferenceEngine::CNNNetwork network;
|
||||
ASSERT_NO_THROW(network = core.ReadNetwork(model, InferenceEngine::Blob::CPtr()));
|
||||
MKLDNNPlugin::MKLDNNExecNetwork::Ptr execNetwork(new MKLDNNPlugin::MKLDNNExecNetwork(network, {}, {}, cache));
|
||||
MKLDNNPlugin::MKLDNNExecNetwork::Ptr execNetwork(new MKLDNNPlugin::MKLDNNExecNetwork({{0, network}}, {}, {}, cache));
|
||||
InferenceEngine::InputsDataMap _networkInputs = network.getInputsInfo();
|
||||
InferenceEngine::OutputsDataMap _networkOutputs = network.getOutputsInfo();
|
||||
execNetwork->setNetworkInputs(_networkInputs);
|
||||
|
|
@ -1714,7 +1714,7 @@ TEST_F(MKLDNNGraphStructureTests, TestResnetPart) {
|
|||
InferenceEngine::CNNNetwork network;
|
||||
ASSERT_NO_THROW(network = core.ReadNetwork(model, weights_ptr));
|
||||
|
||||
MKLDNNPlugin::MKLDNNExecNetwork::Ptr execNetwork(new MKLDNNPlugin::MKLDNNExecNetwork(network, {}, {}, cache));
|
||||
MKLDNNPlugin::MKLDNNExecNetwork::Ptr execNetwork(new MKLDNNPlugin::MKLDNNExecNetwork({{0, network}}, {}, {}, cache));
|
||||
InferenceEngine::InputsDataMap _networkInputs = network.getInputsInfo();
|
||||
InferenceEngine::OutputsDataMap _networkOutputs = network.getOutputsInfo();
|
||||
execNetwork->setNetworkInputs(_networkInputs);
|
||||
|
|
@ -1864,7 +1864,7 @@ TEST_F(MKLDNNGraphStructureTests, TestConcatAfterConcat) {
|
|||
InferenceEngine::Core core;
|
||||
InferenceEngine::CNNNetwork network;
|
||||
ASSERT_NO_THROW(network = core.ReadNetwork(model, InferenceEngine::Blob::CPtr()));
|
||||
MKLDNNPlugin::MKLDNNExecNetwork::Ptr execNetwork(new MKLDNNPlugin::MKLDNNExecNetwork(network, {}, {}, cache));
|
||||
MKLDNNPlugin::MKLDNNExecNetwork::Ptr execNetwork(new MKLDNNPlugin::MKLDNNExecNetwork({{0, network}}, {}, {}, cache));
|
||||
InferenceEngine::InputsDataMap _networkInputs = network.getInputsInfo();
|
||||
InferenceEngine::OutputsDataMap _networkOutputs = network.getOutputsInfo();
|
||||
execNetwork->setNetworkInputs(_networkInputs);
|
||||
|
|
@ -2045,7 +2045,7 @@ TEST_F(MKLDNNGraphStructureTests, Test2ConcatFromConcat) {
|
|||
InferenceEngine::Core core;
|
||||
InferenceEngine::CNNNetwork network;
|
||||
ASSERT_NO_THROW(network = core.ReadNetwork(model, InferenceEngine::Blob::CPtr()));
|
||||
MKLDNNPlugin::MKLDNNExecNetwork::Ptr execNetwork(new MKLDNNPlugin::MKLDNNExecNetwork(network, {}, {}, cache));
|
||||
MKLDNNPlugin::MKLDNNExecNetwork::Ptr execNetwork(new MKLDNNPlugin::MKLDNNExecNetwork({{0, network}}, {}, {}, cache));
|
||||
InferenceEngine::InputsDataMap _networkInputs = network.getInputsInfo();
|
||||
InferenceEngine::OutputsDataMap _networkOutputs = network.getOutputsInfo();
|
||||
execNetwork->setNetworkInputs(_networkInputs);
|
||||
|
|
@ -2377,7 +2377,7 @@ TEST_F(MKLDNNGraphStructureTests, TestLoadTopologyWithConstLayer) {
|
|||
InferenceEngine::CNNNetwork network;
|
||||
ASSERT_NO_THROW(network = core.ReadNetwork(model, weights_ptr));
|
||||
|
||||
MKLDNNPlugin::MKLDNNExecNetwork::Ptr execNetwork(new MKLDNNPlugin::MKLDNNExecNetwork(network, {}, {}, cache));
|
||||
MKLDNNPlugin::MKLDNNExecNetwork::Ptr execNetwork(new MKLDNNPlugin::MKLDNNExecNetwork({{0, network}}, {}, {}, cache));
|
||||
InferenceEngine::InputsDataMap _networkInputs = network.getInputsInfo();
|
||||
InferenceEngine::OutputsDataMap _networkOutputs = network.getOutputsInfo();
|
||||
execNetwork->setNetworkInputs(_networkInputs);
|
||||
|
|
@ -2525,7 +2525,7 @@ TEST_F(MKLDNNGraphStructureTests, TestLoadTopologyWithEltwiseBeforeConcat) {
|
|||
InferenceEngine::CNNNetwork network;
|
||||
ASSERT_NO_THROW(network = core.ReadNetwork(model, weights_ptr));
|
||||
|
||||
MKLDNNPlugin::MKLDNNExecNetwork::Ptr execNetwork(new MKLDNNPlugin::MKLDNNExecNetwork(network, {}, {}, cache));
|
||||
MKLDNNPlugin::MKLDNNExecNetwork::Ptr execNetwork(new MKLDNNPlugin::MKLDNNExecNetwork({{0, network}}, {}, {}, cache));
|
||||
InferenceEngine::InputsDataMap _networkInputs = network.getInputsInfo();
|
||||
InferenceEngine::OutputsDataMap _networkOutputs = network.getOutputsInfo();
|
||||
execNetwork->setNetworkInputs(_networkInputs);
|
||||
|
|
|
|||
Loading…
Reference in New Issue