Open wenxingsen opened 6 years ago
cythoning gpu_mv.pyx to gpu_mv.cpp
... cimport numpy as np
assert sizeof(int) == sizeof(np.int32_t)
gpu_mv.pyx:14:419: Syntax error in C variable declaration
I can finish the operation on the Cython's version of 0.27.3
It works with Cython's version of 0.27.3
cythoning gpu_mv.pyx to gpu_mv.cpp
Error compiling Cython file:
... cimport numpy as np
assert sizeof(int) == sizeof(np.int32_t)
cdef extern from "gpu_mv.hpp": void _mv(np.float32_t all_boxes, np.float32_t all_masks, np.int32_t all_boxes_num, np.int32_t candidate_inds, np.int32_t candidate_start, np.float32_t candidate_weights, np.int32_t candidate_num, np.float32_t binary_thresh, np.int32_t image_height, np.int32_t image_width, np.int32_t box_dim, np.int32_t mask_size, np.int32_t result_num, np.float32_t result_mask, np.int32_t* result_box, np.int32_t device_id); ^
gpu_mv.pyx:14:419: Syntax error in C variable declaration