I WISH I HAD SOME TESTS THOUGH

This commit is contained in:
Joseph Redmon
2017-11-21 11:34:46 -08:00
parent 16686cec57
commit 56be49aa48
6 changed files with 16 additions and 12 deletions

View File

@ -13,7 +13,9 @@ def sample(probs):
return len(probs)-1
def c_array(ctype, values):
return (ctype * len(values))(*values)
arr = (ctype*len(values))()
arr[:] = values
return arr
class BOX(Structure):
_fields_ = [("x", c_float),