Skip to content

Commit

Permalink
Merge pull request mcfletch#112
Browse files Browse the repository at this point in the history
  • Loading branch information
Gulag Kulak authored and gulagkulak committed Oct 4, 2024
1 parent 4110558 commit 5884765
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions accelerate/src/numpy_formathandler.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ cdef extern from "numpy/arrayobject.h":
int PyArray_ISCARRAY_RO( np.ndarray instance )
cdef np.ndarray PyArray_Zeros(int nd, np.npy_intp* 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 @@ -227,4 +226,4 @@ cdef class NumpyHandler(FormatHandler):

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

0 comments on commit 5884765

Please sign in to comment.