提交 deca03cf authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Declare arguments as non-None in scan_perform.pyx

上级 75b8b833
...@@ -62,7 +62,7 @@ numpy.import_array() ...@@ -62,7 +62,7 @@ numpy.import_array()
def get_version(): def get_version():
return 0.318 return 0.319
# TODO: We need to get rid of the negative indexing performed with `pos` and `l`. # TODO: We need to get rid of the negative indexing performed with `pos` and `l`.
# @cython.wraparound(False) # @cython.wraparound(False)
...@@ -76,23 +76,23 @@ def perform( ...@@ -76,23 +76,23 @@ def perform(
const unsigned int n_sit_sot, const unsigned int n_sit_sot,
const unsigned int n_nit_sot, const unsigned int n_nit_sot,
const bint as_while, const bint as_while,
const int[:] mintaps, const int[:] mintaps not None,
int[:] pos, int[:] pos not None,
int[:] store_steps, int[:] store_steps not None,
tuple tap_array, tuple tap_array not None,
tuple tap_array_len, tuple tap_array_len not None,
const numpy.npy_bool[:] vector_seqs, const numpy.npy_bool[:] vector_seqs not None,
const numpy.npy_bool[:] vector_outs, const numpy.npy_bool[:] vector_outs not None,
tuple mit_mot_out_slices, tuple mit_mot_out_slices not None,
const numpy.npy_bool[:] mitmots_preallocated, const numpy.npy_bool[:] mitmots_preallocated not None,
const numpy.npy_bool[:] outs_is_tensor, const numpy.npy_bool[:] outs_is_tensor not None,
list inner_input_storage, list inner_input_storage not None,
list inner_output_storage, list inner_output_storage not None,
const numpy.npy_bool[:] destroy_map, const numpy.npy_bool[:] destroy_map not None,
list outer_inputs, list outer_inputs not None,
list outer_outputs, list outer_outputs not None,
tuple outer_output_dtypes, tuple outer_output_dtypes not None,
tuple outer_output_ndims, tuple outer_output_ndims not None,
fn, fn,
) -> (float, int): ) -> (float, int):
""" """
......
...@@ -23,7 +23,7 @@ if not config.cxx: ...@@ -23,7 +23,7 @@ if not config.cxx:
_logger = logging.getLogger("aesara.scan.scan_perform") _logger = logging.getLogger("aesara.scan.scan_perform")
version = 0.318 # must match constant returned in function get_version() version = 0.319 # must match constant returned in function get_version()
need_reload = False need_reload = False
scan_perform: Optional[ModuleType] = None scan_perform: Optional[ModuleType] = None
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论