Commit 27029eae authored by Robert Kimball's avatar Robert Kimball Committed by Scott Cyphers

make BatchNorm backwards compatible (#762)

parent e974093a
......@@ -411,7 +411,8 @@ static shared_ptr<ngraph::Function>
else if (node_op == "BatchNorm")
{
auto epsilon = node_js.at("eps").get<double>();
if (node_js.at("training"))
bool training = get_or_default<bool>(node_js, "training", true);
if (training)
{
node = make_shared<op::BatchNorm>(epsilon, args[0], args[1], args[2]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment