Skip to content

Commit

Permalink
Replace CHECK with assert. (jax-ml#2569)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhennigan authored Apr 1, 2020
1 parent ca23be6 commit 1d09b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jaxlib/pytree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ void PyTreeDef::FlattenHelper(py::handle handle, py::list* leaves,
FlattenHelper(entry, leaves, tree);
}
} else {
CHECK(node.kind == Kind::kLeaf);
assert(node.kind == Kind::kLeaf);
leaves->append(py::reinterpret_borrow<py::object>(handle));
}
node.num_nodes = tree->traversal_.size() - start_num_nodes + 1;
Expand Down

0 comments on commit 1d09b6b

Please sign in to comment.