Skip to content
Snippets Groups Projects
Commit d7c2bda1 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Added more checks

parent 5fd06284
No related branches found
No related tags found
2 merge requests!318[Upd] release verision 0.5.0,!272[Add] Possibility to create a GenericOperator from any Operator
Pipeline #60958 failed
......@@ -74,10 +74,13 @@ TEST_CASE("[graph/convert] toGenericOp", "[toGenericOp][recipies]") {
}
}
REQUIRE(metaOpNode);
REQUIRE(!metaOpNode->getOperator()->isAtomic());
auto newGenOp = g->getNode("ConvReLUFC_0");
// Ensure the conversion
REQUIRE(newGenOp->type() == "ConvReLUFC");
REQUIRE(std::dynamic_pointer_cast<GenericOperator_Op>(newGenOp->getOperator()));
const auto metaOpAttr = *std::static_pointer_cast<DynamicAttributes>(metaOpNode->getOperator()->attributes());
const auto newGenOpAttr = *std::static_pointer_cast<DynamicAttributes>(newGenOp->getOperator()->attributes());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment