From 63ad4b7b96ad6d3de929eee94481da63f133c124 Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Thu, 6 Dec 2018 20:06:09 -0800 Subject: [PATCH] fix lint --- src/relay/pass/to_anf.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/relay/pass/to_anf.cc b/src/relay/pass/to_anf.cc index 9a99a787d7559..e0e0f717ef462 100644 --- a/src/relay/pass/to_anf.cc +++ b/src/relay/pass/to_anf.cc @@ -110,7 +110,7 @@ struct ExprDep : ExprFunctor { } void Depend(const Expr& parent, const Expr& child) { - CHECK(dependency.count(parent) != 0); + CHECK_NE(dependency.count(parent), 0); dependency.at(parent).insert(child); if (dependent.count(child) == 0) { @@ -254,7 +254,7 @@ struct CalcScope : ExprFunctor { if (esm.dep_final.count(ep) != 0) { return esm.dep_final.at(ep); } - CHECK(esm.expr_to_scope.count(parent) != 0); + CHECK_NE(esm.expr_to_scope.count(parent), 0); return esm.expr_to_scope.at(parent); }