Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions accelerate/src/numpy_formathandler.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ cdef extern from "numpy/arrayobject.h":
int PyArray_ISCARRAY_RO( np.ndarray instance )
cdef np.ndarray PyArray_Zeros(int nd, np.Py_intptr_t* dims, np.dtype, int fortran)
cdef np.ndarray PyArray_EnsureArray(object)
cdef int PyArray_FillWithScalar(object, object)
cdef void import_array()
cdef int PyArray_FillWithScalar(np.ndarray, object)
cdef void* PyArray_DATA( np.ndarray )
cdef int PyArray_NDIM( np.ndarray )
cdef int *PyArray_DIMS( np.ndarray )
Expand Down Expand Up @@ -226,4 +225,4 @@ cdef class NumpyHandler(FormatHandler):

# Cython numpy tutorial neglects to mention this AFAICS
# get segfaults without it
import_array()
np.import_array()