Proposal test uses special run() method to check exception throwing (#4062)
* proposal test uses special run() method to check exception throwing * validate() removed from run()
This commit is contained in:
parent
08c4ac5372
commit
b0f5a339e1
@ -23,6 +23,7 @@ public:
|
||||
protected:
|
||||
void SetUp() override;
|
||||
void Validate() override {};
|
||||
void Run() override;
|
||||
|
||||
const LayerTestsDefinitions::normalize_type normalize = true;
|
||||
const LayerTestsDefinitions::feat_stride_type feat_stride = 1;
|
||||
|
@ -93,6 +93,11 @@ void ProposalBehTest::SetUp() {
|
||||
function = std::make_shared<ngraph::Function>(results, params, "proposal");
|
||||
}
|
||||
|
||||
void ProposalBehTest::Run() {
|
||||
LoadNetwork();
|
||||
Infer();
|
||||
}
|
||||
|
||||
TEST_P(ProposalBehTest, CompareWithRefs) {
|
||||
ASSERT_THROW(Run(), InferenceEngine::details::InferenceEngineException);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user