提交 96ca9d84 编写于 作者: L Li Xinqi 提交者: Jinhui Yuan

the unit of std::max is std::numeric_limits<T>::min() (#1004)

上级 e1620821
......@@ -127,7 +127,7 @@ void RegstActSubGraph::ForEachConsumerPathDuration(
};
HashMap<const ActNode*, double> node2longest_path_duration;
TopoForEachActNode([&](const ActNode* node) {
double duration = 0;
double duration = std::numeric_limits<double>::min();
ForEachInNode(node, [&](const ActNode* in_node) {
duration = std::max(duration, node2longest_path_duration[in_node]);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册