Skip to content

Commit 9f0cbad

Browse files
committed
making target adapting to the chosen Floating type automatically
1 parent 7f9c382 commit 9f0cbad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/demo_RealNVP.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ T = Float32
2121
######################################
2222
# a difficult banana target
2323
######################################
24-
target = Banana(2, 1.0f0, 100.0f0)
24+
target = Banana(2, one(T), 100one(T))
2525
logp = Base.Fix1(logpdf, target)
2626

2727

0 commit comments

Comments
 (0)