From a6e4ec9c268a9889775e5a1a2491646c16aaa54b Mon Sep 17 00:00:00 2001 From: houpc Date: Tue, 16 Jan 2024 14:43:32 +0800 Subject: [PATCH] bugfix in test --- src/computational_graph/eval.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/computational_graph/eval.jl b/src/computational_graph/eval.jl index 51616d7a..c6cba91c 100644 --- a/src/computational_graph/eval.jl +++ b/src/computational_graph/eval.jl @@ -22,8 +22,7 @@ function eval!(g::Graph{F,W}, leafmap::Dict{Int,Int}=Dict{Int,Int}(), leaf::Vect if !inherit if isempty(leafmap) if randseed < 0 - # node.weight = 1.0 - node.weight = -3.0 + node.weight = 1.0 else node.weight = rand() end