Skip to content

Commit

Permalink
small bugfix in CircuitIR
Browse files Browse the repository at this point in the history
  • Loading branch information
Richert committed Sep 10, 2019
1 parent d64bee1 commit 00026f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrates/ir/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ def compile(self,
n, m = tval['shape'][0], sval['shape'][0]

# check whether the weight matrix is dense enough for this edge realization to be efficient
if len(weight)/(n*m) > matrix_sparseness:
if len(weight)/(n*m) < matrix_sparseness:

weight_mat = np.zeros((n, m), dtype=np.float32)
if not tidx:
Expand Down

0 comments on commit 00026f4

Please sign in to comment.