From b7018d77150b0d0f329d1dc8e1679622649c7983 Mon Sep 17 00:00:00 2001 From: Lizhiyi Date: Mon, 22 Jan 2024 23:18:29 +0800 Subject: [PATCH] modify eval --- src/computational_graph/eval.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/computational_graph/eval.jl b/src/computational_graph/eval.jl index db65f02a..227f76b4 100644 --- a/src/computational_graph/eval.jl +++ b/src/computational_graph/eval.jl @@ -18,7 +18,7 @@ function eval!(g::Graph{F,W}, leafmap::Dict{Int,Int}=Dict{Int,Int}(), leaf::Vect for node in PostOrderDFS(g) if isleaf(node) if isempty(leafmap) - node.weight = -3.0 + node.weight = 1.0 else node.weight = leaf[leafmap[node.id]] end