Skip to content

Commit

Permalink
workaround for deepcopy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dfdx committed Oct 24, 2016
1 parent b69fd63 commit 237cb88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ function compare{T,V,H}(rbm::AbstractRBM{T,V,H}, options::Dict...; input_size=-1

X = generate_dataset(T, n_vis; n_obs=n_obs)
args = [map(opt -> (X, opt), options)...]
deepcopy(rbm)
rbms = map(i -> deepcopy(rbm), 1:length(args))
return compare(fit, rbms, args)
end
Expand Down

0 comments on commit 237cb88

Please # to comment.