Commit ba1d5a4f authored by Martin Larralde's avatar Martin Larralde
Browse files

Mark some `ConnectionScorer` functions as raising no exception

parent cabd6331
......@@ -91,8 +91,8 @@ cdef class ConnectionScorer:
cdef uint8_t* node_frames_raw
cdef int _index(self, Nodes nodes) nogil except 1
cdef int _compute_skippable(self, int min, int i) nogil except 1
cdef int _score_connections(self, Nodes nodes, int min, int i, _training* tinf, bint final=*) nogil except 1
cdef int _compute_skippable(self, int min, int i) nogil
cdef int _score_connections(self, Nodes nodes, int min, int i, _training* tinf, bint final=*) nogil
# --- Nodes ------------------------------------------------------------------
......
......@@ -1036,7 +1036,7 @@ cdef class ConnectionScorer:
with nogil:
self._index(nodes)
cdef int _compute_skippable(self, int min, int i) nogil except 1:
cdef int _compute_skippable(self, int min, int i) nogil:
if self.backend != simd_backend.NONE:
memset(&self.skip_connection[min], 0, sizeof(uint8_t) * (i - min))
IF AVX2_BUILD_SUPPORT:
......@@ -1057,7 +1057,7 @@ cdef class ConnectionScorer:
with nogil:
self._compute_skippable(min, i)
cdef int _score_connections(self, Nodes nodes, int min, int i, _training* tinf, bint final=False) nogil except 1:
cdef int _score_connections(self, Nodes nodes, int min, int i, _training* tinf, bint final=False) nogil:
cdef int j
for j in range(min, i):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment