Skip to content

Commit

Permalink
fix benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
CheukHinHoJerry committed Dec 11, 2023
1 parent 931f8f5 commit 9e9c586
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions benchmarks/benchmark_bflow_lux_Tucker.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ bRnl = AtomicOrbitalsRadials(Pn, Dn, spec)
bYlm = RYlmBasis(Ylmdegree)

# setup state
BFwf_chain, spec, spec1p = BFwf_lux(Nel, bRnl, bYlm, nuclei, Tucker(5); totdeg = totdegree, ν = 2)
BFwf_chain, spec, spec1p = ACEpsi.BFwf_lux(Nel, bRnl, bYlm, nuclei, Tucker(5); totdeg = totdegree, ν = 2)
ps, st = setupBFState(MersenneTwister(1234), BFwf_chain, Σ)
out, st = BFwf_chain(X, ps, st)


@btime BFwf_chain($X, $ps, $st)
@btime gradient($BFwf_chain, $X, $ps, $st)
Expand All @@ -62,6 +64,6 @@ end

@profview let BFwf_chain = BFwf_chain, X = X, ps = ps, st = st
for i = 1:10_000
laplacian(X, ps, st)
laplacian(BFwf_chain, X, ps, st)
end
end

0 comments on commit 9e9c586

Please sign in to comment.