after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def generic(self, args, kws): """ Type the overloaded function by compiling the appropriate implementation for the given args. """ disp, new_args = self._get_impl(args, kws) if disp is None: return # Compile and type it for the given types disp_type = types.Dispatcher(disp) #...
def generic(self, args, kws): """ Type the overloaded function by compiling the appropriate implementation for the given args. """ disp, new_args = self._get_impl(args, kws) if disp is None: return # Compile and type it for the given types disp_type = types.Dispatcher(disp) #...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def do_class_init(cls): """ Register attribute implementation. """ from numba.targets.imputils import lower_getattr attr = cls._attr @lower_getattr(cls.key, attr) def getattr_impl(context, builder, typ, value): typingctx = context.typing_context fnty = cls._get_function_typ...
def do_class_init(cls): """ Register attribute implementation. """ from numba.targets.imputils import lower_getattr attr = cls._attr @lower_getattr(cls.key, attr) def getattr_impl(context, builder, typ, value): sig_args = (typ,) sig_kws = {} typing_context = context...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def getattr_impl(context, builder, typ, value): typingctx = context.typing_context fnty = cls._get_function_type(typingctx, typ) sig = cls._get_signature(typingctx, fnty, (typ,), {}) call = context.get_function(fnty, sig) return call(builder, (value,))
def getattr_impl(context, builder, typ, value): sig_args = (typ,) sig_kws = {} typing_context = context.typing_context disp, sig_args = cls._get_dispatcher(typing_context, typ, attr, sig_args, sig_kws) disp_type = types.Dispatcher(disp) sig = disp_type.get_call_type(typing_context, sig_args, sig...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def _resolve(self, typ, attr): if self._attr != attr: return None fnty = self._get_function_type(self.context, typ) sig = self._get_signature(self.context, fnty, (typ,), {}) # There should only be one template for template in fnty.templates: self._inline_overloads.update(template._in...
def _resolve(self, typ, attr): if self._attr != attr: return None sig = self._resolve_impl_sig(typ, attr, (typ,), {}) return sig.return_type
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def do_class_init(cls): """ Register generic method implementation. """ from numba.targets.imputils import lower_builtin attr = cls._attr @lower_builtin((cls.key, attr), cls.key, types.VarArg(types.Any)) def method_impl(context, builder, sig, args): typ = sig.args[0] typing...
def do_class_init(cls): """ Register generic method implementation. """ from numba.targets.imputils import lower_builtin attr = cls._attr @lower_builtin((cls.key, attr), cls.key, types.VarArg(types.Any)) def method_impl(context, builder, sig, args): typ = sig.args[0] typing...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def method_impl(context, builder, sig, args): typ = sig.args[0] typing_context = context.typing_context fnty = cls._get_function_type(typing_context, typ) sig = cls._get_signature(typing_context, fnty, sig.args, {}) call = context.get_function(fnty, sig) # Link dependent library context.add_...
def method_impl(context, builder, sig, args): typ = sig.args[0] typing_context = context.typing_context disp, sig_args = cls._get_dispatcher(typing_context, typ, attr, sig.args, {}) disp_type = types.Dispatcher(disp) sig = disp_type.get_call_type(typing_context, sig.args, {}) call = context.get_...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def _resolve(self, typ, attr): if self._attr != attr: return None assert isinstance(typ, self.key) class MethodTemplate(AbstractTemplate): key = (self.key, attr) _inline = self._inline _overload_func = staticmethod(self._overload_func) _inline_overloads = self._inli...
def _resolve(self, typ, attr): if self._attr != attr: return None assert isinstance(typ, self.key) class MethodTemplate(AbstractTemplate): key = (self.key, attr) def generic(_, args, kws): args = (typ,) + tuple(args) sig = self._resolve_impl_sig(typ, attr, ...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def generic(_, args, kws): args = (typ,) + tuple(args) fnty = self._get_function_type(self.context, typ) sig = self._get_signature(self.context, fnty, args, kws) sig = sig.replace(pysig=utils.pysignature(self._overload_func)) for template in fnty.templates: self._inline_overloads.update(temp...
def generic(_, args, kws): args = (typ,) + tuple(args) sig = self._resolve_impl_sig(typ, attr, args, kws) if sig is not None: return sig.as_method()
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def make_overload_attribute_template( typ, attr, overload_func, inline, base=_OverloadAttributeTemplate ): """ Make a template class for attribute *attr* of *typ* overloaded by *overload_func*. """ assert isinstance(typ, types.Type) or issubclass(typ, types.Type) name = "OverloadTemplate_%s_...
def make_overload_attribute_template( typ, attr, overload_func, base=_OverloadAttributeTemplate ): """ Make a template class for attribute *attr* of *typ* overloaded by *overload_func*. """ assert isinstance(typ, types.Type) or issubclass(typ, types.Type) name = "OverloadTemplate_%s_%s" % (t...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def make_overload_method_template(typ, attr, overload_func, inline): """ Make a template class for method *attr* of *typ* overloaded by *overload_func*. """ return make_overload_attribute_template( typ, attr, overload_func, inline=inline, base=_OverloadMethodT...
def make_overload_method_template(typ, attr, overload_func): """ Make a template class for method *attr* of *typ* overloaded by *overload_func*. """ return make_overload_attribute_template( typ, attr, overload_func, base=_OverloadMethodTemplate )
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_eq(a, b): accept = (types.UnicodeType, types.StringLiteral, types.UnicodeCharSeq) a_unicode = isinstance(a, accept) b_unicode = isinstance(b, accept) if a_unicode and b_unicode: def eq_impl(a, b): if len(a) != len(b): return False return _cmp_...
def unicode_eq(a, b): if isinstance(a, types.UnicodeType) and isinstance(b, types.UnicodeType): def eq_impl(a, b): if len(a) != len(b): return False return _cmp_region(a, 0, b, 0, len(a)) == 0 return eq_impl
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def eq_impl(a, b): return False
def eq_impl(a, b): if len(a) != len(b): return False return _cmp_region(a, 0, b, 0, len(a)) == 0
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_ne(a, b): accept = (types.UnicodeType, types.StringLiteral, types.UnicodeCharSeq) a_unicode = isinstance(a, accept) b_unicode = isinstance(b, accept) if a_unicode and b_unicode: def ne_impl(a, b): return not (a == b) return ne_impl elif a_unicode ^ b_unicode...
def unicode_ne(a, b): if isinstance(a, types.UnicodeType) and isinstance(b, types.UnicodeType): def ne_impl(a, b): return not (a == b) return ne_impl
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_lt(a, b): a_unicode = isinstance(a, (types.UnicodeType, types.StringLiteral)) b_unicode = isinstance(b, (types.UnicodeType, types.StringLiteral)) if a_unicode and b_unicode: def lt_impl(a, b): minlen = min(len(a), len(b)) eqcode = _cmp_region(a, 0, b, 0, minlen) ...
def unicode_lt(a, b): if isinstance(a, types.UnicodeType) and isinstance(b, types.UnicodeType): def lt_impl(a, b): minlen = min(len(a), len(b)) eqcode = _cmp_region(a, 0, b, 0, minlen) if eqcode == -1: return True elif eqcode == 0: ...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_gt(a, b): a_unicode = isinstance(a, (types.UnicodeType, types.StringLiteral)) b_unicode = isinstance(b, (types.UnicodeType, types.StringLiteral)) if a_unicode and b_unicode: def gt_impl(a, b): minlen = min(len(a), len(b)) eqcode = _cmp_region(a, 0, b, 0, minlen) ...
def unicode_gt(a, b): if isinstance(a, types.UnicodeType) and isinstance(b, types.UnicodeType): def gt_impl(a, b): minlen = min(len(a), len(b)) eqcode = _cmp_region(a, 0, b, 0, minlen) if eqcode == 1: return True elif eqcode == 0: ...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_le(a, b): a_unicode = isinstance(a, (types.UnicodeType, types.StringLiteral)) b_unicode = isinstance(b, (types.UnicodeType, types.StringLiteral)) if a_unicode and b_unicode: def le_impl(a, b): return not (a > b) return le_impl
def unicode_le(a, b): if isinstance(a, types.UnicodeType) and isinstance(b, types.UnicodeType): def le_impl(a, b): return not (a > b) return le_impl
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_ge(a, b): a_unicode = isinstance(a, (types.UnicodeType, types.StringLiteral)) b_unicode = isinstance(b, (types.UnicodeType, types.StringLiteral)) if a_unicode and b_unicode: def ge_impl(a, b): return not (a < b) return ge_impl
def unicode_ge(a, b): if isinstance(a, types.UnicodeType) and isinstance(b, types.UnicodeType): def ge_impl(a, b): return not (a < b) return ge_impl
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_find(data, substr, start=None, end=None): """Implements str.find()""" if isinstance(substr, types.UnicodeCharSeq): def find_impl(data, substr, start=None, end=None): return data.find(str(substr)) return find_impl unicode_idx_check_type(start, "start") unicode_i...
def unicode_find(data, substr, start=None, end=None): """Implements str.find()""" if isinstance(substr, types.UnicodeCharSeq): def find_impl(data, substr): return data.find(str(substr)) return find_impl unicode_idx_check_type(start, "start") unicode_idx_check_type(end, "en...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def find_impl(data, substr, start=None, end=None): return data.find(str(substr))
def find_impl(data, substr): return data.find(str(substr))
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_rfind(data, substr, start=None, end=None): """Implements str.rfind()""" if isinstance(substr, types.UnicodeCharSeq): def rfind_impl(data, substr, start=None, end=None): return data.rfind(str(substr)) return rfind_impl unicode_idx_check_type(start, "start") unic...
def unicode_rfind(data, substr, start=None, end=None): """Implements str.rfind()""" if isinstance(substr, types.UnicodeCharSeq): def rfind_impl(data, substr): return data.rfind(str(substr)) return rfind_impl unicode_idx_check_type(start, "start") unicode_idx_check_type(end...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def rfind_impl(data, substr, start=None, end=None): return data.rfind(str(substr))
def rfind_impl(data, substr): return data.rfind(str(substr))
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_count(src, sub, start=None, end=None): _count_args_types_check(start) _count_args_types_check(end) if isinstance(sub, types.UnicodeType): def count_impl(src, sub, start=None, end=None): count = 0 src_len = len(src) sub_len = len(sub) sta...
def unicode_count(src, sub, start=None, end=None): _count_args_types_check(start) _count_args_types_check(end) if isinstance(sub, types.UnicodeType): def count_impl(src, sub, start=start, end=end): count = 0 src_len = len(src) sub_len = len(sub) sta...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def count_impl(src, sub, start=None, end=None): count = 0 src_len = len(src) sub_len = len(sub) start = _normalize_slice_idx_count(start, src_len, 0) end = _normalize_slice_idx_count(end, src_len, src_len) if end - start < 0 or start > src_len: return 0 src = src[start:end] sr...
def count_impl(src, sub, start=start, end=end): count = 0 src_len = len(src) sub_len = len(sub) start = _normalize_slice_idx_count(start, src_len, 0) end = _normalize_slice_idx_count(end, src_len, src_len) if end - start < 0 or start > src_len: return 0 src = src[start:end] sr...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_split(a, sep=None, maxsplit=-1): if not ( maxsplit == -1 or isinstance(maxsplit, (types.Omitted, types.Integer, types.IntegerLiteral)) ): return None # fail typing if maxsplit is not an integer if isinstance(sep, types.UnicodeCharSeq): def split_impl(a, sep=Non...
def unicode_split(a, sep=None, maxsplit=-1): if not ( maxsplit == -1 or isinstance(maxsplit, (types.Omitted, types.Integer, types.IntegerLiteral)) ): return None # fail typing if maxsplit is not an integer if isinstance(sep, types.UnicodeCharSeq): def split_impl(a, sep, ma...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def split_impl(a, sep=None, maxsplit=-1): a_len = len(a) sep_len = len(sep) if sep_len == 0: raise ValueError("empty separator") parts = [] last = 0 idx = 0 if sep_len == 1 and maxsplit == -1: sep_code_point = _get_code_point(sep, 0) for idx in range(a_len): ...
def split_impl(a, sep, maxsplit=-1): a_len = len(a) sep_len = len(sep) if sep_len == 0: raise ValueError("empty separator") parts = [] last = 0 idx = 0 if sep_len == 1 and maxsplit == -1: sep_code_point = _get_code_point(sep, 0) for idx in range(a_len): ...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_center(string, width, fillchar=" "): if not isinstance(width, types.Integer): raise TypingError("The width must be an Integer") if isinstance(fillchar, types.UnicodeCharSeq): def center_impl(string, width, fillchar=" "): return string.center(width, str(fillchar)) ...
def unicode_center(string, width, fillchar=" "): if not isinstance(width, types.Integer): raise TypingError("The width must be an Integer") if isinstance(fillchar, types.UnicodeCharSeq): def center_impl(string, width, fillchar): return string.center(width, str(fillchar)) r...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def center_impl(string, width, fillchar=" "): return string.center(width, str(fillchar))
def center_impl(string, width, fillchar): return string.center(width, str(fillchar))
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_ljust(string, width, fillchar=" "): if not isinstance(width, types.Integer): raise TypingError("The width must be an Integer") if isinstance(fillchar, types.UnicodeCharSeq): def ljust_impl(string, width, fillchar=" "): return string.ljust(width, str(fillchar)) ...
def unicode_ljust(string, width, fillchar=" "): if not isinstance(width, types.Integer): raise TypingError("The width must be an Integer") if isinstance(fillchar, types.UnicodeCharSeq): def ljust_impl(string, width, fillchar): return string.ljust(width, str(fillchar)) retu...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def ljust_impl(string, width, fillchar=" "): return string.ljust(width, str(fillchar))
def ljust_impl(string, width, fillchar): return string.ljust(width, str(fillchar))
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_rjust(string, width, fillchar=" "): if not isinstance(width, types.Integer): raise TypingError("The width must be an Integer") if isinstance(fillchar, types.UnicodeCharSeq): def rjust_impl(string, width, fillchar=" "): return string.rjust(width, str(fillchar)) ...
def unicode_rjust(string, width, fillchar=" "): if not isinstance(width, types.Integer): raise TypingError("The width must be an Integer") if isinstance(fillchar, types.UnicodeCharSeq): def rjust_impl(string, width, fillchar): return string.rjust(width, str(fillchar)) retu...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def rjust_impl(string, width, fillchar=" "): return string.rjust(width, str(fillchar))
def rjust_impl(string, width, fillchar): return string.rjust(width, str(fillchar))
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_lstrip(string, chars=None): if isinstance(chars, types.UnicodeCharSeq): def lstrip_impl(string, chars=None): return string.lstrip(str(chars)) return lstrip_impl unicode_strip_types_check(chars) def lstrip_impl(string, chars=None): return string[unicode_str...
def unicode_lstrip(string, chars=None): if isinstance(chars, types.UnicodeCharSeq): def lstrip_impl(string, chars): return string.lstrip(str(chars)) return lstrip_impl unicode_strip_types_check(chars) def lstrip_impl(string, chars=None): return string[unicode_strip_le...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def lstrip_impl(string, chars=None): return string.lstrip(str(chars))
def lstrip_impl(string, chars): return string.lstrip(str(chars))
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_rstrip(string, chars=None): if isinstance(chars, types.UnicodeCharSeq): def rstrip_impl(string, chars=None): return string.rstrip(str(chars)) return rstrip_impl unicode_strip_types_check(chars) def rstrip_impl(string, chars=None): return string[: unicode_s...
def unicode_rstrip(string, chars=None): if isinstance(chars, types.UnicodeCharSeq): def rstrip_impl(string, chars): return string.rstrip(str(chars)) return rstrip_impl unicode_strip_types_check(chars) def rstrip_impl(string, chars=None): return string[: unicode_strip_...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def rstrip_impl(string, chars=None): return string.rstrip(str(chars))
def rstrip_impl(string, chars): return string.rstrip(str(chars))
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def unicode_strip(string, chars=None): if isinstance(chars, types.UnicodeCharSeq): def strip_impl(string, chars=None): return string.strip(str(chars)) return strip_impl unicode_strip_types_check(chars) def strip_impl(string, chars=None): lb = unicode_strip_left_bound(...
def unicode_strip(string, chars=None): if isinstance(chars, types.UnicodeCharSeq): def strip_impl(string, chars): return string.strip(str(chars)) return strip_impl unicode_strip_types_check(chars) def strip_impl(string, chars=None): lb = unicode_strip_left_bound(strin...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def strip_impl(string, chars=None): return string.strip(str(chars))
def strip_impl(string, chars): return string.strip(str(chars))
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def _PyUnicode_IsNumeric(ch): ctype = _PyUnicode_gettyperecord(ch) return ctype.flags & _PyUnicode_TyperecordMasks.NUMERIC_MASK != 0
def _PyUnicode_IsNumeric(ch): raise NotImplementedError
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def _PyUnicode_IsPrintable(ch): ctype = _PyUnicode_gettyperecord(ch) return ctype.flags & _PyUnicode_TyperecordMasks.PRINTABLE_MASK != 0
def _PyUnicode_IsPrintable(ch): raise NotImplementedError
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def _PyUnicode_IsAlpha(ch): ctype = _PyUnicode_gettyperecord(ch) return ctype.flags & _PyUnicode_TyperecordMasks.ALPHA_MASK != 0
def _PyUnicode_IsAlpha(ch): raise NotImplementedError
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def codegen(context, builder, signature, args): [src] = args return builder.ctlz(src, ir.Constant(ir.IntType(1), 0))
def codegen(cgctx, builder, typ, args): flt = args[0] return builder.bitcast(flt, bitcastty)
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def run_pass(self, state): """ This prunes dead branches, a dead branch is one which is derivable as not taken at compile time purely based on const/literal evaluation. """ assert state.func_ir msg = ( "Internal error in pre-inference dead branch pruning " "pass encountered durin...
def run_pass(self, state): """ This prunes dead branches, a dead branch is one which is derivable as not taken at compile time purely based on const/literal evaluation. """ assert state.func_ir msg = ( "Internal error in pre-inference dead branch pruning " "pass encountered durin...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def run_pass(self, state): """ This prunes dead branches, a dead branch is one which is derivable as not taken at compile time purely based on const/literal evaluation. """ # purely for demonstration purposes, obtain the analysis from a pass # declare as a required dependent semantic_const_...
def run_pass(self, state): """ This prunes dead branches, a dead branch is one which is derivable as not taken at compile time purely based on const/literal evaluation. """ # purely for demonstration purposes, obtain the analysis from a pass # declare as a required dependent semantic_const_...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def run_pass(self, state): """Run inlining of inlinables""" if self._DEBUG: print("before inline".center(80, "-")) print(state.func_ir.dump()) print("".center(80, "-")) modified = False # use a work list, look for call sites via `ir.Expr.op == call` and # then pass these to `...
def run_pass(self, state): """Run inlining of inlinables""" if config.DEBUG or self._DEBUG: print("before inline".center(80, "-")) print(state.func_ir.dump()) print("".center(80, "-")) modified = False # use a work list, look for call sites via `ir.Expr.op == call` and # then...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def run_pass(self, state): from numba import njit func_ir = state.func_ir mutated = False for idx, blk in func_ir.blocks.items(): for stmt in blk.body: if isinstance(stmt, ir.Assign): if isinstance(stmt.value, ir.Expr): if stmt.value.op == "make_f...
def run_pass(self, state): from numba import njit func_ir = state.func_ir mutated = False for idx, blk in func_ir.blocks.items(): for stmt in blk.body: if isinstance(stmt, ir.Assign): if isinstance(stmt.value, ir.Expr): if stmt.value.op == "make_f...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def _get_var_parent(name): """Get parent of the variable given its name""" # If not a temporary variable if not name.startswith("$"): # Return the base component of the name return name.split( ".", )[0]
def _get_var_parent(name): """Get parent of the variable given its name""" # If not a temprary variable if not name.startswith("$"): # Return the base component of the name return name.split( ".", )[0]
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def _build_impl(self, cache_key, args, kws): """Build and cache the implementation. Given the positional (`args`) and keyword arguments (`kws`), obtains the `overload` implementation and wrap it in a Dispatcher object. The expected argument types are returned for use by type-inference. The expected...
def _build_impl(self, cache_key, args, kws): """Build and cache the implementation. Given the positional (`args`) and keyword arguments (`kws`), obtains the `overload` implementation and wrap it in a Dispatcher object. The expected argument types are returned for use by type-inference. The expected...
https://github.com/numba/numba/issues/4944
Traceback (most recent call last): File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__ typ = typ.elements[i] IndexError: tuple index out of range During handling of the above exception, another exception occurred: Traceback (most recent cal...
IndexError
def _lower_parfor_parallel(lowerer, parfor): """Lowerer that handles LLVM code generation for parfor. This function lowers a parfor IR node to LLVM. The general approach is as follows: 1) The code from the parfor's init block is lowered normally in the context of the current function. 2) The ...
def _lower_parfor_parallel(lowerer, parfor): """Lowerer that handles LLVM code generation for parfor. This function lowers a parfor IR node to LLVM. The general approach is as follows: 1) The code from the parfor's init block is lowered normally in the context of the current function. 2) The ...
https://github.com/numba/numba/issues/4738
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numba/errors.py in new_error_context(fmt_, *args, **kwargs) 661 try: --> 662 y...
AssertionError
def _create_gufunc_for_parfor_body( lowerer, parfor, typemap, typingctx, targetctx, flags, locals, has_aliases, index_var_typ, races, ): """ Takes a parfor and creates a gufunc function for its body. There are two parts to this function. 1) Code to iterate across ...
def _create_gufunc_for_parfor_body( lowerer, parfor, typemap, typingctx, targetctx, flags, locals, has_aliases, index_var_typ, races, ): """ Takes a parfor and creates a gufunc function for its body. There are two parts to this function. 1) Code to iterate across ...
https://github.com/numba/numba/issues/4738
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numba/errors.py in new_error_context(fmt_, *args, **kwargs) 661 try: --> 662 y...
AssertionError
def run(self): """run parfor conversion pass: replace Numpy calls with Parfors when possible and optimize the IR.""" # run array analysis, a pre-requisite for parfor translation remove_dels(self.func_ir.blocks) self.array_analysis.run(self.func_ir.blocks) # run stencil translation to parfor ...
def run(self): """run parfor conversion pass: replace Numpy calls with Parfors when possible and optimize the IR.""" # run array analysis, a pre-requisite for parfor translation remove_dels(self.func_ir.blocks) self.array_analysis.run(self.func_ir.blocks) # run stencil translation to parfor ...
https://github.com/numba/numba/issues/4738
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numba/errors.py in new_error_context(fmt_, *args, **kwargs) 661 try: --> 662 y...
AssertionError
def get_parfor_params(blocks, options_fusion, fusion_info): """find variables used in body of parfors from outside and save them. computed as live variables at entry of first block. """ # since parfor wrap creates a back-edge to first non-init basic block, # live_map[first_non_init_block] contains ...
def get_parfor_params(blocks, options_fusion, fusion_info): """find variables used in body of parfors from outside and save them. computed as live variables at entry of first block. """ # since parfor wrap creates a back-edge to first non-init basic block, # live_map[first_non_init_block] contains ...
https://github.com/numba/numba/issues/4738
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numba/errors.py in new_error_context(fmt_, *args, **kwargs) 661 try: --> 662 y...
AssertionError
def get_parfor_params_inner(parfor, pre_defs, options_fusion, fusion_info): blocks = wrap_parfor_blocks(parfor) cfg = compute_cfg_from_blocks(blocks) usedefs = compute_use_defs(blocks) live_map = compute_live_map(cfg, blocks, usedefs.usemap, usedefs.defmap) parfor_ids, _ = get_parfor_params(blocks, ...
def get_parfor_params_inner(parfor, pre_defs, options_fusion, fusion_info): blocks = wrap_parfor_blocks(parfor) cfg = compute_cfg_from_blocks(blocks) usedefs = compute_use_defs(blocks) live_map = compute_live_map(cfg, blocks, usedefs.usemap, usedefs.defmap) parfor_ids = get_parfor_params(blocks, opt...
https://github.com/numba/numba/issues/4738
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numba/errors.py in new_error_context(fmt_, *args, **kwargs) 661 try: --> 662 y...
AssertionError
def get_parfor_reductions( func_ir, parfor, parfor_params, calltypes, reductions=None, reduce_varnames=None, param_uses=None, param_nodes=None, var_to_param=None, ): """find variables that are updated using their previous values and an array item accessed with parfor index, e...
def get_parfor_reductions( parfor, parfor_params, calltypes, reductions=None, reduce_varnames=None, param_uses=None, param_nodes=None, var_to_param=None, ): """find variables that are updated using their previous values and an array item accessed with parfor index, e.g. s = s+A[i...
https://github.com/numba/numba/issues/4738
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numba/errors.py in new_error_context(fmt_, *args, **kwargs) 661 try: --> 662 y...
AssertionError
def get_reduce_nodes(name, nodes, func_ir): """ Get nodes that combine the reduction variable with a sentinel variable. Recognizes the first node that combines the reduction variable with another variable. """ reduce_nodes = None defs = {} def lookup(var, varonly=True): val = de...
def get_reduce_nodes(name, nodes): """ Get nodes that combine the reduction variable with a sentinel variable. Recognizes the first node that combines the reduction variable with another variable. """ reduce_nodes = None defs = {} def lookup(var, varonly=True): val = defs.get(va...
https://github.com/numba/numba/issues/4738
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numba/errors.py in new_error_context(fmt_, *args, **kwargs) 661 try: --> 662 y...
AssertionError
def _get_names(self, obj): """Return a set of names for the given obj, where array and tuples are broken down to their individual shapes or elements. This is safe because both Numba array shapes and Python tuples are immutable. """ if isinstance(obj, ir.Var) or isinstance(obj, str): name = o...
def _get_names(self, obj): """Return a set of names for the given obj, where array and tuples are broken down to their individual shapes or elements. This is safe because both Numba array shapes and Python tuples are immutable. """ if isinstance(obj, ir.Var) or isinstance(obj, str): name = o...
https://github.com/numba/numba/issues/4748
Traceback (most recent call last): File "<ipython-input-101-c2c55c205bd8>", line 1, in <module> runfile('C:/Users/rpham/Desktop/FIN_Library/test.py', wdir='C:/Users/rpham/Desktop/FIN_Library') File "C:\Users\rpham\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(...
IndexError
def get_shape_classes(self, name): """Instead of the shape tuple, return tuple of int, where each int is the corresponding class index of the size object. Unknown shapes are given class index -1. Return empty tuple if the input name is a scalar variable. """ if isinstance(name, ir.Var): ...
def get_shape_classes(self, name): """Instead of the shape tuple, return tuple of int, where each int is the corresponding class index of the size object. Unknown shapes are given class index -1. Return empty tuple if the input name is a scalar variable. """ if isinstance(name, ir.Var): ...
https://github.com/numba/numba/issues/4748
Traceback (most recent call last): File "<ipython-input-101-c2c55c205bd8>", line 1, in <module> runfile('C:/Users/rpham/Desktop/FIN_Library/test.py', wdir='C:/Users/rpham/Desktop/FIN_Library') File "C:\Users\rpham\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(...
IndexError
def _create_gufunc_for_parfor_body( lowerer, parfor, typemap, typingctx, targetctx, flags, locals, has_aliases, index_var_typ, races, ): """ Takes a parfor and creates a gufunc function for its body. There are two parts to this function. 1) Code to iterate across ...
def _create_gufunc_for_parfor_body( lowerer, parfor, typemap, typingctx, targetctx, flags, locals, has_aliases, index_var_typ, races, ): """ Takes a parfor and creates a gufunc function for its body. There are two parts to this function. 1) Code to iterate across ...
https://github.com/numba/numba/issues/4748
Traceback (most recent call last): File "<ipython-input-101-c2c55c205bd8>", line 1, in <module> runfile('C:/Users/rpham/Desktop/FIN_Library/test.py', wdir='C:/Users/rpham/Desktop/FIN_Library') File "C:\Users\rpham\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(...
IndexError
def min_parallel_impl(return_type, arg): # XXX: use prange for 1D arrays since pndindex returns a 1-tuple instead of # integer. This causes type and fusion issues. if arg.ndim == 0: def min_1(in_arr): return in_arr[()] elif arg.ndim == 1: def min_1(in_arr): numb...
def min_parallel_impl(return_type, arg): # XXX: use prange for 1D arrays since pndindex returns a 1-tuple instead of # integer. This causes type and fusion issues. if arg.ndim == 1: def min_1(in_arr): numba.parfor.init_prange() min_checker(len(in_arr)) val = numb...
https://github.com/numba/numba/issues/4748
Traceback (most recent call last): File "<ipython-input-101-c2c55c205bd8>", line 1, in <module> runfile('C:/Users/rpham/Desktop/FIN_Library/test.py', wdir='C:/Users/rpham/Desktop/FIN_Library') File "C:\Users\rpham\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(...
IndexError
def max_parallel_impl(return_type, arg): if arg.ndim == 0: def max_1(in_arr): return in_arr[()] elif arg.ndim == 1: def max_1(in_arr): numba.parfor.init_prange() max_checker(len(in_arr)) val = numba.targets.builtins.get_type_min_value(in_arr.dtyp...
def max_parallel_impl(return_type, arg): if arg.ndim == 1: def max_1(in_arr): numba.parfor.init_prange() max_checker(len(in_arr)) val = numba.targets.builtins.get_type_min_value(in_arr.dtype) for i in numba.parfor.internal_prange(len(in_arr)): ...
https://github.com/numba/numba/issues/4748
Traceback (most recent call last): File "<ipython-input-101-c2c55c205bd8>", line 1, in <module> runfile('C:/Users/rpham/Desktop/FIN_Library/test.py', wdir='C:/Users/rpham/Desktop/FIN_Library') File "C:\Users\rpham\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(...
IndexError
def sum_parallel_impl(return_type, arg): zero = return_type(0) if arg.ndim == 0: def sum_1(in_arr): return in_arr[()] elif arg.ndim == 1: def sum_1(in_arr): numba.parfor.init_prange() val = zero for i in numba.parfor.internal_prange(len(in_a...
def sum_parallel_impl(return_type, arg): zero = return_type(0) if arg.ndim == 1: def sum_1(in_arr): numba.parfor.init_prange() val = zero for i in numba.parfor.internal_prange(len(in_arr)): val += in_arr[i] return val else: d...
https://github.com/numba/numba/issues/4748
Traceback (most recent call last): File "<ipython-input-101-c2c55c205bd8>", line 1, in <module> runfile('C:/Users/rpham/Desktop/FIN_Library/test.py', wdir='C:/Users/rpham/Desktop/FIN_Library') File "C:\Users\rpham\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(...
IndexError
def prod_parallel_impl(return_type, arg): one = return_type(1) if arg.ndim == 0: def prod_1(in_arr): return in_arr[()] elif arg.ndim == 1: def prod_1(in_arr): numba.parfor.init_prange() val = one for i in numba.parfor.internal_prange(len(in_...
def prod_parallel_impl(return_type, arg): one = return_type(1) if arg.ndim == 1: def prod_1(in_arr): numba.parfor.init_prange() val = one for i in numba.parfor.internal_prange(len(in_arr)): val *= in_arr[i] return val else: d...
https://github.com/numba/numba/issues/4748
Traceback (most recent call last): File "<ipython-input-101-c2c55c205bd8>", line 1, in <module> runfile('C:/Users/rpham/Desktop/FIN_Library/test.py', wdir='C:/Users/rpham/Desktop/FIN_Library') File "C:\Users\rpham\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(...
IndexError
def mean_parallel_impl(return_type, arg): # can't reuse sum since output type is different zero = return_type(0) if arg.ndim == 0: def mean_1(in_arr): return in_arr[()] elif arg.ndim == 1: def mean_1(in_arr): numba.parfor.init_prange() val = zero ...
def mean_parallel_impl(return_type, arg): # can't reuse sum since output type is different zero = return_type(0) if arg.ndim == 1: def mean_1(in_arr): numba.parfor.init_prange() val = zero for i in numba.parfor.internal_prange(len(in_arr)): val +...
https://github.com/numba/numba/issues/4748
Traceback (most recent call last): File "<ipython-input-101-c2c55c205bd8>", line 1, in <module> runfile('C:/Users/rpham/Desktop/FIN_Library/test.py', wdir='C:/Users/rpham/Desktop/FIN_Library') File "C:\Users\rpham\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(...
IndexError
def var_parallel_impl(return_type, arg): if arg.ndim == 0: def var_1(in_arr): return 0 elif arg.ndim == 1: def var_1(in_arr): # Compute the mean m = in_arr.mean() # Compute the sum of square diffs numba.parfor.init_prange() ...
def var_parallel_impl(return_type, arg): if arg.ndim == 1: def var_1(in_arr): # Compute the mean m = in_arr.mean() # Compute the sum of square diffs numba.parfor.init_prange() ssd = 0 for i in numba.parfor.internal_prange(len(in_arr)):...
https://github.com/numba/numba/issues/4748
Traceback (most recent call last): File "<ipython-input-101-c2c55c205bd8>", line 1, in <module> runfile('C:/Users/rpham/Desktop/FIN_Library/test.py', wdir='C:/Users/rpham/Desktop/FIN_Library') File "C:\Users\rpham\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(...
IndexError
def get_call_table( blocks, call_table=None, reverse_call_table=None, topological_ordering=True ): """returns a dictionary of call variables and their references.""" # call_table example: c = np.zeros becomes c:["zeroes", np] # reverse_call_table example: c = np.zeros becomes np_var:c if call_table ...
def get_call_table( blocks, call_table=None, reverse_call_table=None, topological_ordering=True ): """returns a dictionary of call variables and their references.""" # call_table example: c = np.zeros becomes c:["zeroes", np] # reverse_call_table example: c = np.zeros becomes np_var:c if call_table ...
https://github.com/numba/numba/issues/4696
## run this: ```python @njit(parallel=True) def stencil_test2(A): @stencil def fun (a): c = 2 return 0.3 * (a[-c+1] + a[0] + a[c-1]) B = fun(A) return B stencil_test2(np.arange(10)) ``` ## see this: ```python /Users/bennettd/miniconda3/lib/python3.7/site-packages/numba/compiler.py:602: ...
ValueError
def run(self): """Finds all calls to StencilFuncs in the IR and converts them to parfor.""" from numba.stencil import StencilFunc # Get all the calls in the function IR. call_table, _ = get_call_table(self.func_ir.blocks) stencil_calls = [] stencil_dict = {} for call_varname, call_list in c...
def run(self): """Finds all calls to StencilFuncs in the IR and converts them to parfor.""" from numba.stencil import StencilFunc # Get all the calls in the function IR. call_table, _ = get_call_table(self.func_ir.blocks) stencil_calls = [] stencil_dict = {} for call_varname, call_list in c...
https://github.com/numba/numba/issues/4696
## run this: ```python @njit(parallel=True) def stencil_test2(A): @stencil def fun (a): c = 2 return 0.3 * (a[-c+1] + a[0] + a[c-1]) B = fun(A) return B stencil_test2(np.arange(10)) ``` ## see this: ```python /Users/bennettd/miniconda3/lib/python3.7/site-packages/numba/compiler.py:602: ...
ValueError
def __getitem__(self, item): if isinstance(item, slice): start, stop, step = item.indices(self.size) stride = step * self.stride start = self.start + start * abs(self.stride) stop = self.start + stop * abs(self.stride) if stride == 0: size = 1 else: ...
def __getitem__(self, item): if isinstance(item, slice): start, stop, step = item.indices(self.size) stride = step * self.stride start = self.start + start * abs(self.stride) stop = self.start + stop * abs(self.stride) if stride == 0: size = 1 else: ...
https://github.com/numba/numba/issues/4201
from numba import cuda a = cuda.device_array((5,)) a[:] = range(5) # this throws an AssertionError ... for v in a: ... print(v) ... 0.0 1.0 2.0 3.0 4.0 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/leofang/conda_envs/cupy_dev/lib/python3.6/site-packages/numba/cuda/cudadrv/devic...
AssertionError
def __init__(self, py_func, identity=None, cache=False, targetoptions={}): if isinstance(py_func, Dispatcher): py_func = py_func.py_func dispatcher = jit(target="npyufunc", cache=cache, **targetoptions)(py_func) self._initialize(dispatcher, identity)
def __init__(self, py_func, identity=None, cache=False, targetoptions={}): if isinstance(py_func, Dispatcher): py_func = py_func.py_func self.targetoptions = targetoptions.copy() kws = {} kws["identity"] = ufuncbuilder.parse_identity(identity) dispatcher = jit(target="npyufunc", cache=cache...
https://github.com/numba/numba/issues/2943
<class 'numpy.ufunc'> b'\x80\x03cnumpy.core\n_ufunc_reconstruct\nq\x00X\x0b\x00\x00\x00__mp_main__q\x01X\x04\x00\x00\x00inc2q\x02\x86q\x03Rq\x04.' <class 'numba.npyufunc.dufunc.DUFunc'> Traceback (most recent call last): File "vectorize_pickle.py", line 15, in <module> print(pickle.dumps(inc1)) TypeError: can't pickle ...
TypeError
def _compile_core(self, sig, flags, locals): """ Trigger the compiler on the core function or load a previously compiled version from the cache. Returns the CompileResult. """ typingctx = self.targetdescr.typing_context targetctx = self.targetdescr.target_context @contextmanager def st...
def _compile_core(self, sig, flags, locals): """ Trigger the compiler on the core function or load a previously compiled version from the cache. Returns the CompileResult. """ typingctx = self.targetdescr.typing_context targetctx = self.targetdescr.target_context @contextmanager def st...
https://github.com/numba/numba/issues/2943
<class 'numpy.ufunc'> b'\x80\x03cnumpy.core\n_ufunc_reconstruct\nq\x00X\x0b\x00\x00\x00__mp_main__q\x01X\x04\x00\x00\x00inc2q\x02\x86q\x03Rq\x04.' <class 'numba.npyufunc.dufunc.DUFunc'> Traceback (most recent call last): File "vectorize_pickle.py", line 15, in <module> print(pickle.dumps(inc1)) TypeError: can't pickle ...
TypeError
def store_overloads_on_success(): # use to ensure overloads are stored on success try: yield except Exception: raise else: exists = self.overloads.get(cres.signature) if exists is None: self.overloads[cres.signature] = cres
def store_overloads_on_success(): # use to ensure overloads are stored on success try: yield except: raise else: exists = self.overloads.get(cres.signature) if exists is None: self.overloads[cres.signature] = cres
https://github.com/numba/numba/issues/2943
<class 'numpy.ufunc'> b'\x80\x03cnumpy.core\n_ufunc_reconstruct\nq\x00X\x0b\x00\x00\x00__mp_main__q\x01X\x04\x00\x00\x00inc2q\x02\x86q\x03Rq\x04.' <class 'numba.npyufunc.dufunc.DUFunc'> Traceback (most recent call last): File "vectorize_pickle.py", line 15, in <module> print(pickle.dumps(inc1)) TypeError: can't pickle ...
TypeError
def build_ufunc(self): with global_compiler_lock: dtypelist = [] ptrlist = [] if not self.nb_func: raise TypeError("No definition") # Get signature in the order they are added keepalive = [] cres = None for sig in self._sigs: cres = se...
def build_ufunc(self): with global_compiler_lock: dtypelist = [] ptrlist = [] if not self.nb_func: raise TypeError("No definition") # Get signature in the order they are added keepalive = [] cres = None for sig in self._sigs: cres = se...
https://github.com/numba/numba/issues/2943
<class 'numpy.ufunc'> b'\x80\x03cnumpy.core\n_ufunc_reconstruct\nq\x00X\x0b\x00\x00\x00__mp_main__q\x01X\x04\x00\x00\x00inc2q\x02\x86q\x03Rq\x04.' <class 'numba.npyufunc.dufunc.DUFunc'> Traceback (most recent call last): File "vectorize_pickle.py", line 15, in <module> print(pickle.dumps(inc1)) TypeError: can't pickle ...
TypeError
def build_ufunc(self): dtypelist = [] ptrlist = [] if not self.nb_func: raise TypeError("No definition") # Get signature in the order they are added keepalive = [] for sig in self._sigs: cres = self._cres[sig] dtypenums, ptr, env = self.build(cres) dtypelist.appe...
def build_ufunc(self): dtypelist = [] ptrlist = [] if not self.nb_func: raise TypeError("No definition") # Get signature in the order they are added keepalive = [] for sig in self._sigs: cres = self._cres[sig] dtypenums, ptr, env = self.build(cres) dtypelist.appe...
https://github.com/numba/numba/issues/2943
<class 'numpy.ufunc'> b'\x80\x03cnumpy.core\n_ufunc_reconstruct\nq\x00X\x0b\x00\x00\x00__mp_main__q\x01X\x04\x00\x00\x00inc2q\x02\x86q\x03Rq\x04.' <class 'numba.npyufunc.dufunc.DUFunc'> Traceback (most recent call last): File "vectorize_pickle.py", line 15, in <module> print(pickle.dumps(inc1)) TypeError: can't pickle ...
TypeError
def _get_incref_decref(context, module, datamodel, container_type): assert datamodel.contains_nrt_meminfo() fe_type = datamodel.fe_type data_ptr_ty = datamodel.get_data_type().as_pointer() refct_fnty = ir.FunctionType(ir.VoidType(), [data_ptr_ty]) incref_fn = module.get_or_insert_function( ...
def _get_incref_decref(context, module, datamodel, container_type): assert datamodel.contains_nrt_meminfo() fe_type = datamodel.fe_type data_ptr_ty = datamodel.get_data_type().as_pointer() refct_fnty = ir.FunctionType(ir.VoidType(), [data_ptr_ty]) incref_fn = module.get_or_insert_function( ...
https://github.com/numba/numba/issues/4520
TypingError Traceback (most recent call last) <ipython-input-45-d29ae2daf2f2> in <module> ----> 1 l = numba.typed.List.empty_list(numba.typeof((0.0, "hello", True))) /opt/anaconda/envs/test/lib/python3.7/site-packages/numba/typed/typedlist.py in empty_list(cls, item_type) 149 of t...
TypingError
def unicode_find(a, b): if isinstance(b, types.UnicodeType): def find_impl(a, b): return _find(substr=b, s=a) return find_impl if isinstance(b, types.UnicodeCharSeq): def find_impl(a, b): return a.find(str(b)) return find_impl
def unicode_find(a, b): if isinstance(b, types.UnicodeType): def find_impl(a, b): return _find(substr=b, s=a) return find_impl
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def find_impl(a, b): return a.find(str(b))
def find_impl(a, b): return _find(substr=b, s=a)
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def unicode_startswith(a, b): if isinstance(b, types.UnicodeType): def startswith_impl(a, b): return _cmp_region(a, 0, b, 0, len(b)) == 0 return startswith_impl if isinstance(b, types.UnicodeCharSeq): def startswith_impl(a, b): return a.startswith(str(b)) ...
def unicode_startswith(a, b): if isinstance(b, types.UnicodeType): def startswith_impl(a, b): return _cmp_region(a, 0, b, 0, len(b)) == 0 return startswith_impl
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def startswith_impl(a, b): return a.startswith(str(b))
def startswith_impl(a, b): return _cmp_region(a, 0, b, 0, len(b)) == 0
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def unicode_endswith(a, b): if isinstance(b, types.UnicodeType): def endswith_impl(a, b): a_offset = len(a) - len(b) if a_offset < 0: return False return _cmp_region(a, a_offset, b, 0, len(b)) == 0 return endswith_impl if isinstance(b, types....
def unicode_endswith(a, b): if isinstance(b, types.UnicodeType): def endswith_impl(a, b): a_offset = len(a) - len(b) if a_offset < 0: return False return _cmp_region(a, a_offset, b, 0, len(b)) == 0 return endswith_impl
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def endswith_impl(a, b): return a.endswith(str(b))
def endswith_impl(a, b): a_offset = len(a) - len(b) if a_offset < 0: return False return _cmp_region(a, a_offset, b, 0, len(b)) == 0
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def unicode_split(a, sep=None, maxsplit=-1): if not ( maxsplit == -1 or isinstance(maxsplit, (types.Omitted, types.Integer, types.IntegerLiteral)) ): return None # fail typing if maxsplit is not an integer if isinstance(sep, types.UnicodeCharSeq): def split_impl(a, sep, ma...
def unicode_split(a, sep=None, maxsplit=-1): if not ( maxsplit == -1 or isinstance(maxsplit, (types.Omitted, types.Integer, types.IntegerLiteral)) ): return None # fail typing if maxsplit is not an integer if isinstance(sep, types.UnicodeType): def split_impl(a, sep, maxsp...
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def unicode_center(string, width, fillchar=" "): if not isinstance(width, types.Integer): raise TypingError("The width must be an Integer") if isinstance(fillchar, types.UnicodeCharSeq): def center_impl(string, width, fillchar): return string.center(width, str(fillchar)) r...
def unicode_center(string, width, fillchar=" "): if not isinstance(width, types.Integer): raise TypingError("The width must be an Integer") if not ( fillchar == " " or isinstance(fillchar, (types.Omitted, types.UnicodeType)) ): raise TypingError("The fillchar must be a UnicodeType") ...
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def center_impl(string, width, fillchar): return string.center(width, str(fillchar))
def center_impl(string, width, fillchar=" "): str_len = len(string) fillchar_len = len(fillchar) if fillchar_len != 1: raise ValueError("The fill character must be exactly one character long") if width <= str_len: return string allmargin = width - str_len lmargin = (allmargin ...
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def unicode_ljust(string, width, fillchar=" "): if not isinstance(width, types.Integer): raise TypingError("The width must be an Integer") if isinstance(fillchar, types.UnicodeCharSeq): def ljust_impl(string, width, fillchar): return string.ljust(width, str(fillchar)) retu...
def unicode_ljust(string, width, fillchar=" "): if not isinstance(width, types.Integer): raise TypingError("The width must be an Integer") if not ( fillchar == " " or isinstance(fillchar, (types.Omitted, types.UnicodeType)) ): raise TypingError("The fillchar must be a UnicodeType") ...
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def ljust_impl(string, width, fillchar): return string.ljust(width, str(fillchar))
def ljust_impl(string, width, fillchar=" "): str_len = len(string) fillchar_len = len(fillchar) if fillchar_len != 1: raise ValueError("The fill character must be exactly one character long") if width <= str_len: return string newstr = string + (fillchar * (width - str_len)) ...
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def unicode_rjust(string, width, fillchar=" "): if not isinstance(width, types.Integer): raise TypingError("The width must be an Integer") if isinstance(fillchar, types.UnicodeCharSeq): def rjust_impl(string, width, fillchar): return string.rjust(width, str(fillchar)) retu...
def unicode_rjust(string, width, fillchar=" "): if not isinstance(width, types.Integer): raise TypingError("The width must be an Integer") if not ( fillchar == " " or isinstance(fillchar, (types.Omitted, types.UnicodeType)) ): raise TypingError("The fillchar must be a UnicodeType") ...
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def rjust_impl(string, width, fillchar): return string.rjust(width, str(fillchar))
def rjust_impl(string, width, fillchar=" "): str_len = len(string) fillchar_len = len(fillchar) if fillchar_len != 1: raise ValueError("The fill character must be exactly one character long") if width <= str_len: return string newstr = (fillchar * (width - str_len)) + string ...
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def unicode_join(sep, parts): if isinstance(parts, types.List): if isinstance(parts.dtype, types.UnicodeType): def join_list_impl(sep, parts): return join_list(sep, parts) return join_list_impl elif isinstance(parts.dtype, types.UnicodeCharSeq): ...
def unicode_join(sep, parts): if isinstance(parts, types.List): if isinstance(parts.dtype, types.UnicodeType): def join_list_impl(sep, parts): return join_list(sep, parts) return join_list_impl else: pass # lists of any other type not supported ...
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def join_list_impl(sep, parts): _parts = [str(p) for p in parts] return join_list(sep, _parts)
def join_list_impl(sep, parts): return join_list(sep, parts)
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def unicode_lstrip(string, chars=None): if isinstance(chars, types.UnicodeCharSeq): def lstrip_impl(string, chars): return string.lstrip(str(chars)) return lstrip_impl unicode_strip_types_check(chars) def lstrip_impl(string, chars=None): return string[unicode_strip_le...
def unicode_lstrip(string, chars=None): unicode_strip_types_check(chars) def lstrip_impl(string, chars=None): return string[unicode_strip_left_bound(string, chars) :] return lstrip_impl
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def lstrip_impl(string, chars): return string.lstrip(str(chars))
def lstrip_impl(string, chars=None): return string[unicode_strip_left_bound(string, chars) :]
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def unicode_rstrip(string, chars=None): if isinstance(chars, types.UnicodeCharSeq): def rstrip_impl(string, chars): return string.rstrip(str(chars)) return rstrip_impl unicode_strip_types_check(chars) def rstrip_impl(string, chars=None): return string[: unicode_strip_...
def unicode_rstrip(string, chars=None): unicode_strip_types_check(chars) def rstrip_impl(string, chars=None): return string[: unicode_strip_right_bound(string, chars)] return rstrip_impl
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def rstrip_impl(string, chars): return string.rstrip(str(chars))
def rstrip_impl(string, chars=None): return string[: unicode_strip_right_bound(string, chars)]
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def unicode_strip(string, chars=None): if isinstance(chars, types.UnicodeCharSeq): def strip_impl(string, chars): return string.strip(str(chars)) return strip_impl unicode_strip_types_check(chars) def strip_impl(string, chars=None): lb = unicode_strip_left_bound(strin...
def unicode_strip(string, chars=None): unicode_strip_types_check(chars) def strip_impl(string, chars=None): lb = unicode_strip_left_bound(string, chars) rb = unicode_strip_right_bound(string, chars) return string[lb:rb] return strip_impl
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def strip_impl(string, chars): return string.strip(str(chars))
def strip_impl(string, chars=None): lb = unicode_strip_left_bound(string, chars) rb = unicode_strip_right_bound(string, chars) return string[lb:rb]
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def unicode_concat(a, b): if isinstance(a, types.UnicodeType) and isinstance(b, types.UnicodeType): def concat_impl(a, b): new_length = a._length + b._length new_kind = _pick_kind(a._kind, b._kind) new_ascii = _pick_ascii(a._is_ascii, b._is_ascii) result = _e...
def unicode_concat(a, b): if isinstance(a, types.UnicodeType) and isinstance(b, types.UnicodeType): def concat_impl(a, b): new_length = a._length + b._length new_kind = _pick_kind(a._kind, b._kind) new_ascii = _pick_ascii(a._is_ascii, b._is_ascii) result = _e...
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def concat_impl(a, b): return a + str(b)
def concat_impl(a, b): new_length = a._length + b._length new_kind = _pick_kind(a._kind, b._kind) new_ascii = _pick_ascii(a._is_ascii, b._is_ascii) result = _empty_string(new_kind, new_length, new_ascii) for i in range(len(a)): _set_code_point(result, i, _get_code_point(a, i)) for j in r...
https://github.com/numba/numba/issues/4416
Traceback (most recent call last): File "/home/pearu/git/Quansight/numba/numba/lowering.py", line 1032, in lower_expr impl = self.context.get_function("static_getitem", signature) File "/home/pearu/git/Quansight/numba/numba/targets/base.py", line 551, in get_function return self.get_function(fn, sig, _firstcall=False) ...
NotImplementedError
def register_binary_operator_kernel(op, kernel, inplace=False): def lower_binary_operator(context, builder, sig, args): return numpy_ufunc_kernel( context, builder, sig, args, kernel, explicit_output=False ) def lower_inplace_operator(context, builder, sig, args): # The visi...
def register_binary_operator_kernel(op, kernel, inplace=False): def lower_binary_operator(context, builder, sig, args): return numpy_ufunc_kernel( context, builder, sig, args, kernel, explicit_output=False ) def lower_inplace_operator(context, builder, sig, args): # The visi...
https://github.com/numba/numba/issues/4131
TypeError Traceback (most recent call last) ~/dev/numba/numba/errors.py in new_error_context(fmt_, *args, **kwargs) 660 try: --> 661 yield 662 except NumbaError as e: ~/dev/numba/numba/lowering.py in lower_block(self, block) 257 loc=sel...
TypeError
def lower_inplace_operator(context, builder, sig, args): # The visible signature is (A, B) -> A # The implementation's signature (with explicit output) # is (A, B, A) -> A args = tuple(args) + (args[0],) sig = typing.signature(sig.return_type, *sig.args + (sig.args[0],)) return numpy_ufunc_kerne...
def lower_inplace_operator(context, builder, sig, args): # The visible signature is (A, B) -> A # The implementation's signature (with explicit output) # is (A, B, A) -> A args = args + (args[0],) sig = typing.signature(sig.return_type, *sig.args + (sig.args[0],)) return numpy_ufunc_kernel(conte...
https://github.com/numba/numba/issues/4131
TypeError Traceback (most recent call last) ~/dev/numba/numba/errors.py in new_error_context(fmt_, *args, **kwargs) 660 try: --> 661 yield 662 except NumbaError as e: ~/dev/numba/numba/lowering.py in lower_block(self, block) 257 loc=sel...
TypeError
def _get_or_create_context_uncached(self, devnum): """See also ``get_or_create_context(devnum)``. This version does not read the cache. """ with self._lock: # Try to get the active context in the CUDA stack or # activate GPU-0 with the primary context with driver.get_active_conte...
def _get_or_create_context_uncached(self, devnum): """See also ``get_or_create_context(devnum)``. This version does not read the cache. """ with self._lock: # Try to get the active context in the CUDA stack or # activate GPU-0 with the primary context with driver.get_active_conte...
https://github.com/numba/numba/issues/4352
Traceback (most recent call last): File "/conda/envs/gdf/lib/python3.6/site-packages/numba/utils.py", line 745, in _exitfunc f() File "/conda/envs/gdf/lib/python3.6/site-packages/numba/utils.py", line 669, in __call__ return info.func(*info.args, **(info.kwargs or {})) File "/conda/envs/gdf/lib/python3.6/site-packages/...
AttributeError
def push(self): """ Pushes this context on the current CPU Thread. """ driver.cuCtxPushCurrent(self.handle) self.prepare_for_use()
def push(self): """ Pushes this context on the current CPU Thread. """ driver.cuCtxPushCurrent(self.handle) # setup *deallocations* as the context becomes active for the first time if self.deallocations is None: self.deallocations = _PendingDeallocs(self.get_memory_info().total)
https://github.com/numba/numba/issues/4352
Traceback (most recent call last): File "/conda/envs/gdf/lib/python3.6/site-packages/numba/utils.py", line 745, in _exitfunc f() File "/conda/envs/gdf/lib/python3.6/site-packages/numba/utils.py", line 669, in __call__ return info.func(*info.args, **(info.kwargs or {})) File "/conda/envs/gdf/lib/python3.6/site-packages/...
AttributeError
def _module_finalizer(context, handle): dealloc = context.deallocations modules = context.modules def core(): shutting_down = utils.shutting_down # early bind def module_unload(handle): # If we are not shutting down, we must be called due to # Context.reset() of Co...
def _module_finalizer(context, handle): dealloc = context.deallocations modules = context.modules def core(): shutting_down = utils.shutting_down # early bind def module_unload(handle): # If we are not shutting down, we must be called due to # Context.reset() of Co...
https://github.com/numba/numba/issues/4352
Traceback (most recent call last): File "/conda/envs/gdf/lib/python3.6/site-packages/numba/utils.py", line 745, in _exitfunc f() File "/conda/envs/gdf/lib/python3.6/site-packages/numba/utils.py", line 669, in __call__ return info.func(*info.args, **(info.kwargs or {})) File "/conda/envs/gdf/lib/python3.6/site-packages/...
AttributeError