Skip to content

Commit 9753cf1

Browse files
committed
remove the deepcopy
1 parent 421fa78 commit 9753cf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/normalization.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ function normalize(os::Group{<:AbstractVector{<:Moments}}, x::AbstractVector{<:A
150150
end
151151

152152
function fetch(nt::NormalizedTrace, inds)
153-
batch = deepcopy(fetch(nt.trace, inds))
153+
batch = fetch(nt.trace, inds)
154154
normalize(nt.normalizer.os, batch)
155155
end
156156

157157
function sample(s, nt::NormalizedTrace)
158-
batch = deepcopy(sample(s, nt.trace))
158+
batch = sample(s, nt.trace)
159159
normalize(nt.normalizer.os, batch)
160160
end

0 commit comments

Comments
 (0)