Skip to content

Commit d33cec9

Browse files
committed
update networks
1 parent 1666cc7 commit d33cec9

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/networks.jl

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,10 @@ end
102102

103103
collect_ixs(ne::EinCode) = [collect(ix) for ix in getixs(ne)]
104104
function collect_ixs(ne::NestedEinsum)
105-
d = collect_ixs!(ne, Dict{Int,Vector{OMEinsum.labeltype(ne.eins)}}())
105+
d = OMEinsum.collect_ixs!(ne, Dict{Int,Vector{OMEinsum.labeltype(ne.eins)}}())
106106
return [d[i] for i=1:length(d)]
107107
end
108108

109-
function collect_ixs!(ne::NestedEinsum, d::Dict)
110-
for i=1:length(ne.args)
111-
if ne.args[i] isa Integer
112-
d[ne.args[i]] = collect(OMEinsum.getixs(ne.eins)[i])
113-
else
114-
collect_ixs!(ne.args[i], d)
115-
end
116-
end
117-
return d
118-
end
119-
120109
"""
121110
optimize_code(code; optmethod=:kahypar, sc_target=17, max_group_size=40, nrepeat=10, imbalances=0.0:0.001:0.8, βs=0.01:0.05:10.0, ntrials=50, niters=1000, sc_weight=2.0, rw_weight=1.0)
122111

0 commit comments

Comments
 (0)