未验证 提交 be87caf2 编写于 作者: A Allen Guo 提交者: GitHub

fix random cache (#723) (#42621)

Co-authored-by: Nyaozhixin <522190855@qq.com>
上级 c7855125
......@@ -14,6 +14,7 @@
#include "paddle/fluid/framework/ir/ipu/optimizer_extract_pass.h"
#include "paddle/fluid/framework/ir/graph_helper.h"
#include "paddle/fluid/framework/ir/pass_tester_helper.h"
namespace paddle {
......@@ -68,7 +69,7 @@ void IpuOptimizerExtractPass::ApplyImpl(ir::Graph* graph) const {
std::vector<float> weight_decay_values{};
// use map store <op_type, op_ptr> ?
for (auto* node : graph->Nodes()) {
for (auto* node : TopologySortOperations(*graph)) {
if (!node->IsOp()) {
continue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册