Unverified Commit 5b113919 authored by Scott Cyphers's avatar Scott Cyphers Committed by GitHub

Merge branch 'master' into pruthvi/memory_allocator

parents 1b2fd78e c2bfb94d
......@@ -72,6 +72,13 @@ void op::Split::pre_validate_and_infer_types()
dimension_at_axis,
" has to be equal to the sum of splits passed to the op: ",
sum_splits);
const bool all_splits_positive =
all_of(begin(m_splits), end(m_splits), [](const size_t v) { return v > 0; });
NODE_VALIDATION_CHECK(this,
all_splits_positive == true,
"All values of the 'splits' attribute must be greater than zero");
}
}
......
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