Skip to content

Commit a60c1ba

Browse files
committed
deepcopy bug demo
1 parent b69fd63 commit a60c1ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ function compare{T,V,H}(rbm::AbstractRBM{T,V,H}, options::Dict...; input_size=-1
283283

284284
X = generate_dataset(T, n_vis; n_obs=n_obs)
285285
args = [map(opt -> (X, opt), options)...]
286+
deepcopy(rbm)
286287
rbms = map(i -> deepcopy(rbm), 1:length(args))
287288
return compare(fit, rbms, args)
288289
end

0 commit comments

Comments
 (0)