Skip to content

Commit cf2aa39

Browse files
committed
update
1 parent 6bc8138 commit cf2aa39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/networks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ collect_ixs(ne::EinCode) = [collect(ix) for ix in getixs(ne)]
104104
function collect_ixs(ne::NestedEinsum)
105105
d = OMEinsum.collect_ixs!(ne, Dict{Int,Vector{OMEinsum.labeltype(ne.eins)}}())
106106
ks = sort!(collect(keys(d)))
107-
return [d[i] for i in ks]
107+
return @inbounds [d[i] for i in ks]
108108
end
109109

110110
function collect_ixs!(ne::NestedEinsum, d::Dict)
111-
for i=1:length(ne.args)
111+
@inbounds for i=1:length(ne.args)
112112
if ne.args[i] isa Integer
113113
d[ne.args[i]] = collect(OMEinsum.getixs(ne.eins)[i])
114114
else

0 commit comments

Comments
 (0)