Skip to content

Commit

Permalink
dgemm interface sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Mar 8, 2015
1 parent 343275c commit 0dc4ce3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/numpy_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ def _dgemm(trans_a, trans_b, m, n, k, a, b, c, alpha=1, beta=0,
assert(a.flags.c_contiguous)
assert(b.flags.c_contiguous)
assert(c.flags.c_contiguous)
assert(m > 0)
assert(n > 0)
assert(k > 0)

_np_helper.NPdgemm(ctypes.c_char(trans_b.encode('ascii')),
ctypes.c_char(trans_a.encode('ascii')),
Expand Down

0 comments on commit 0dc4ce3

Please sign in to comment.