Skip to content

Commit 79da5c9

Browse files
committed
fix tests
1 parent 5c169d9 commit 79da5c9

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
@@ -2,8 +2,8 @@ function generate_tensors(x::T, m::ConstraintSatisfactionProblem) where T
22
cons = ProblemReductions.constraints(m)
33
objs = ProblemReductions.objectives(m)
44
tensors = vcat(
5-
[reshape(map(s -> s ? one(x) : zero(x), t.specification), ntuple(i->num_flavors(m), length(t.variables))) for t in cons],
6-
[reshape(map(s -> _pow(x, s.size), t.specification), ntuple(i->num_flavors(m), length(t.variables))) for t in objs]
5+
Array{T}[reshape(map(s -> s ? one(x) : zero(x), t.specification), ntuple(i->num_flavors(m), length(t.variables))) for t in cons],
6+
Array{T}[reshape(map(s -> _pow(x, s), t.specification), ntuple(i->num_flavors(m), length(t.variables))) for t in objs]
77
)
88
ixs = vcat([t.variables for t in cons], [t.variables for t in objs])
99
return add_labels!(tensors, ixs, variables(m))

0 commit comments

Comments
 (0)