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 op_LOAD_CONST(self, inst, res): value = self.code_consts[inst.arg] if isinstance(value, tuple): st = [] for x in value: nm = "$const_%s" % str(x) val_const = ir.Const(x, loc=self.loc) target = self.store(val_const, name=nm, redefine=True) st.ap...
def op_LOAD_CONST(self, inst, res): value = self.code_consts[inst.arg] const = ir.Const(value, loc=self.loc) self.store(const, res)
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 op_BEGIN_FINALLY(self, inst, temps): # The *temps* are the exception variables const_none = ir.Const(None, loc=self.loc) for tmp in temps: # Set to None for now self.store(const_none, name=tmp) self._exception_vars.add(tmp)
def op_BEGIN_FINALLY(self, inst, state): "no-op" none = ir.Const(None, loc=self.loc) self.store(value=none, name=state)
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 op_BUILD_CONST_KEY_MAP(self, inst, keys, keytmps, values, res): # Unpack the constant key-tuple and reused build_map which takes # a sequence of (key, value) pair. keyvar = self.get(keys) # TODO: refactor this pattern. occurred several times. for inst in self.current_block.body: if isins...
def op_BUILD_CONST_KEY_MAP(self, inst, keys, keytmps, values, res): # Unpack the constant key-tuple and reused build_map which takes # a sequence of (key, value) pair. keyvar = self.get(keys) # TODO: refactor this pattern. occurred several times. for inst in self.current_block.body: if isins...
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 op_POP_BLOCK(self, inst, kind=None): if kind is None: self.syntax_blocks.pop() elif kind == "try": self._insert_try_block_end()
def op_POP_BLOCK(self, inst): self.syntax_blocks.pop()
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 op_COMPARE_OP(self, inst, lhs, rhs, res): op = dis.cmp_op[inst.arg] if op == "in" or op == "not in": lhs, rhs = rhs, lhs if op == "not in": self._binop("in", lhs, rhs, res) tmp = self.get(res) out = ir.Expr.unary("not", value=tmp, loc=self.loc) self.store(out, re...
def op_COMPARE_OP(self, inst, lhs, rhs, res): op = dis.cmp_op[inst.arg] if op == "in" or op == "not in": lhs, rhs = rhs, lhs if op == "not in": self._binop("in", lhs, rhs, res) tmp = self.get(res) out = ir.Expr.unary("not", value=tmp, loc=self.loc) self.store(out, re...
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 op_RAISE_VARARGS(self, inst, exc): if exc is not None: exc = self.get(exc) tryblk = self.dfainfo.active_try_block if tryblk is not None: # In a try block stmt = ir.TryRaise(exception=exc, loc=self.loc) self.current_block.append(stmt) self._insert_try_block_end() ...
def op_RAISE_VARARGS(self, inst, exc): if exc is not None: exc = self.get(exc) stmt = ir.Raise(exception=exc, loc=self.loc) self.current_block.append(stmt)
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 op_MAKE_FUNCTION( self, inst, name, code, closure, annotations, kwdefaults, defaults, res ): if annotations != None: raise NotImplementedError( "op_MAKE_FUNCTION with annotations is not implemented" ) if kwdefaults != None: raise NotImplementedError("op_MAKE_FUNCTION ...
def op_MAKE_FUNCTION( self, inst, name, code, closure, annotations, kwdefaults, defaults, res ): if annotations != None: raise NotImplementedError( "op_MAKE_FUNCTION with annotations is not implemented" ) if kwdefaults != None: raise NotImplementedError("op_MAKE_FUNCTION ...
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 op_CALL_FUNCTION_KW(self, inst, func, args, names, res): func = self.get(func) args = [self.get(x) for x in args] # Find names const names = self.get(names) for inst in self.current_block.body: if isinstance(inst, ir.Assign) and inst.target is names: self.current_block.remove...
def op_CALL_FUNCTION_KW(self, inst, func, args, names, res): func = self.get(func) args = [self.get(x) for x in args] # Find names const names = self.get(names) for inst in self.current_block.body: if isinstance(inst, ir.Assign) and inst.target is names: self.current_block.remove...
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 dump(self, file=None): from numba.six import StringIO nofile = file is None # Avoid early bind of sys.stdout as default value file = file or StringIO() for offset, block in sorted(self.blocks.items()): print("label %s:" % (offset,), file=file) block.dump(file=file) if nofile...
def dump(self, file=None): # Avoid early bind of sys.stdout as default value file = file or sys.stdout for offset, block in sorted(self.blocks.items()): print("label %s:" % (offset,), file=file) block.dump(file=file)
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 render_dot(self, filename_prefix="numba_ir", include_ir=True): """Render the CFG of the IR with GraphViz DOT via the ``graphviz`` python binding. Returns ------- g : graphviz.Digraph Use `g.view()` to open the graph in the default PDF application. """ try: import graphv...
def render_dot(self, filename_prefix="numba_ir"): """Render the CFG of the IR with GraphViz DOT via the ``graphviz`` python binding. Returns ------- g : graphviz.Digraph Use `g.view()` to open the graph in the default PDF application. """ try: import graphviz as gv exce...
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 visit_vars_inner(node, callback, cbdata): if isinstance(node, ir.Var): return callback(node, cbdata) elif isinstance(node, list): return [visit_vars_inner(n, callback, cbdata) for n in node] elif isinstance(node, tuple): return tuple([visit_vars_inner(n, callback, cbdata) for n i...
def visit_vars_inner(node, callback, cbdata): if isinstance(node, ir.Var): return callback(node, cbdata) elif isinstance(node, list): return [visit_vars_inner(n, callback, cbdata) for n in node] elif isinstance(node, tuple): return tuple([visit_vars_inner(n, callback, cbdata) for n i...
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_topo_order(blocks, cfg=None): """find topological order of blocks such that true branches are visited first (e.g. for_break test in test_dataflow). """ if cfg is None: cfg = compute_cfg_from_blocks(blocks) post_order = [] seen = set() def _dfs_rec(node): if node not...
def find_topo_order(blocks, cfg=None): """find topological order of blocks such that true branches are visited first (e.g. for_break test in test_dataflow). """ if cfg == None: cfg = compute_cfg_from_blocks(blocks) post_order = [] seen = set() def _dfs_rec(node): if node not...
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 merge_adjacent_blocks(blocks): cfg = compute_cfg_from_blocks(blocks) # merge adjacent blocks removed = set() for label in list(blocks.keys()): if label in removed: continue block = blocks[label] succs = list(cfg.successors(label)) while True: i...
def merge_adjacent_blocks(blocks): cfg = compute_cfg_from_blocks(blocks) # merge adjacent blocks removed = set() for label in list(blocks.keys()): if label in removed: continue block = blocks[label] succs = list(cfg.successors(label)) while True: i...
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 convert_code_obj_to_function(code_obj, caller_ir): """ Converts a code object from a `make_function.code` attr in the IR into a python function, caller_ir is the FunctionIR of the caller and is used for the resolution of freevars. """ fcode = code_obj.code nfree = len(fcode.co_freevars) ...
def convert_code_obj_to_function(code_obj, caller_ir): """ Converts a code object from a `make_function.code` attr in the IR into a python function, caller_ir is the FunctionIR of the caller and is used for the resolution of freevars. """ fcode = code_obj.code nfree = len(fcode.co_freevars) ...
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 impl_extend(l, iterable): if not isinstance(l, types.ListType): return if not isinstance(iterable, types.IterableType): raise TypingError("extend argument must be iterable") def select_impl(): if isinstance(iterable, types.ListType): def impl(l, iterable): ...
def impl_extend(l, iterable): if not isinstance(l, types.ListType): return if not isinstance(iterable, types.IterableType): raise TypingError("extend argument must be iterable") def select_impl(): if isinstance(iterable, types.ListType): def impl(l, iterable): ...
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 impl_copy(l): itemty = l.item_type if isinstance(l, types.ListType): def impl(l): newl = new_list(itemty, len(l)) for i in l: newl.append(i) return newl return impl
def impl_copy(l): if isinstance(l, types.ListType): def impl(l): return l[:] return 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 impl(l): newl = new_list(itemty, len(l)) for i in l: newl.append(i) return newl
def impl(l): return l[:]
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 compare_helper(this, other, accepted): if not isinstance(this, types.ListType): return if not isinstance(other, types.ListType): return lambda this, other: False def impl(this, other): return compare(this, other) in accepted return impl
def compare_helper(this, other, accepted): if not isinstance(this, types.ListType): return if not isinstance(other, types.ListType): raise TypingError("list can only be compared to list") def impl(this, other): return compare(this, other) in accepted return 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 return_exception(self, exc_class, exc_args=None, loc=None): """Propagate exception to the caller.""" self.call_conv.return_user_exc( self.builder, exc_class, exc_args, loc=loc, func_name=self.func_ir.func_id.func_name, )
def return_exception(self, exc_class, exc_args=None, loc=None): self.call_conv.return_user_exc( self.builder, exc_class, exc_args, loc=loc, func_name=self.func_ir.func_id.func_name, )
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(self): # Emit the Env into the module self.emit_environment_object() if self.generator_info is None: self.genlower = None self.lower_normal_function(self.fndesc) else: self.genlower = self.GeneratorLower(self) self.gentype = self.genlower.gentype self.g...
def lower(self): # Emit the Env into the module self.emit_environment_object() if self.generator_info is None: self.genlower = None self.lower_normal_function(self.fndesc) else: self.genlower = self.GeneratorLower(self) self.gentype = self.genlower.gentype self.g...
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_block(self, block): """ Lower the given block. """ self.pre_block(block) for inst in block.body: self.loc = inst.loc defaulterrcls = partial(LoweringError, loc=self.loc) with new_error_context( 'lowering "{inst}" at {loc}', inst=inst, loc=self.loc, errcl...
def lower_block(self, block): """ Lower the given block. """ self.pre_block(block) for inst in block.body: self.loc = inst.loc defaulterrcls = partial(LoweringError, loc=self.loc) with new_error_context( 'lowering "{inst}" at {loc}', inst=inst, loc=self.loc, errcl...
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_inst(self, inst): # Set debug location for all subsequent LL instructions self.debuginfo.mark_location(self.builder, self.loc) self.debug_print(str(inst)) if isinstance(inst, ir.Assign): ty = self.typeof(inst.target.name) val = self.lower_assign(ty, inst) self.storevar(...
def lower_inst(self, inst): # Set debug location for all subsequent LL instructions self.debuginfo.mark_location(self.builder, self.loc) self.debug_print(str(inst)) if isinstance(inst, ir.Assign): ty = self.typeof(inst.target.name) val = self.lower_assign(ty, inst) self.storevar(...
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_expr(self, resty, expr): if expr.op == "binop": return self.lower_binop(resty, expr, expr.fn) elif expr.op == "inplace_binop": lty = self.typeof(expr.lhs.name) if lty.mutable: return self.lower_binop(resty, expr, expr.fn) else: # inplace operator...
def lower_expr(self, resty, expr): if expr.op == "binop": return self.lower_binop(resty, expr, expr.fn) elif expr.op == "inplace_binop": lty = self.typeof(expr.lhs.name) if lty.mutable: return self.lower_binop(resty, expr, expr.fn) else: # inplace operator...
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 pre_block(self, block): from numba.unsafe import eh super(Lower, self).pre_block(block) # Detect if we are in a TRY block by looking for a call to # `eh.exception_check`. for call in block.find_exprs(op="call"): defn = ir_utils.guard( ir_utils.get_definition, se...
def pre_block(self, block): """ Called before lowering a block. """
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 __init__(self, func, identity=None, cache=False, targetoptions={}): if cache: raise TypeError("caching is not supported") for opt in targetoptions: if opt == "nopython": warnings.warn("nopython kwarg for cuda target is redundant", RuntimeWarning) else: fmt = "...
def __init__(self, func, identity=None, cache=False, targetoptions={}): if cache: raise TypeError("caching is not supported") assert not targetoptions self.py_func = func self.identity = parse_identity(identity) # { arg_dtype: (return_dtype), cudakernel } self.kernelmap = OrderedDict()
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 _replace_parallel_functions(self, blocks): """ Replace functions with their parallel implementation in replace_functions_map if available. The implementation code is inlined to enable more optimization. """ swapped = self.swapped from numba.inline_closurecall import inline_closure_call ...
def _replace_parallel_functions(self, blocks): """ Replace functions with their parallel implementation in replace_functions_map if available. The implementation code is inlined to enable more optimization. """ swapped = self.swapped from numba.inline_closurecall import inline_closure_call ...
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 replace_func(): func_def = get_definition(self.func_ir, expr.func) callname = find_callname(self.func_ir, expr) repl_func = replace_functions_map.get(callname, None) if ( repl_func is None and len(callname) == 2 and isinstance(callname[1], ir.Var) and isinstance(self....
def replace_func(): func_def = get_definition(self.func_ir, expr.func) callname = find_callname(self.func_ir, expr) repl_func = replace_functions_map.get(callname, None) require(repl_func != None) typs = tuple(self.typemap[x.name] for x in expr.args) try: new_func = repl_func(lhs_typ, *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 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/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 _break_constant(self, const, loc): """ Break down constant exception. """ if isinstance(const, tuple): # it's a tuple(exception class, args) if not self._is_exception_type(const[0]): msg = "Encountered unsupported exception constant %r" raise errors.UnsupportedError(...
def _break_constant(self, const): """ Break down constant exception. """ if isinstance(const, tuple): # it's a tuple(exception class, args) if not self._is_exception_type(const[0]): raise NotImplementedError("unsupported exception constant %r" % (const[0],)) return const[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 match(self, func_ir, block, typemap, calltypes): self.raises = raises = {} self.tryraises = tryraises = {} self.block = block # Detect all raise statements and find which ones can be # rewritten for inst in block.find_insts((ir.Raise, ir.TryRaise)): if inst.exception is None: ...
def match(self, func_ir, block, typemap, calltypes): self.raises = raises = {} self.block = block # Detect all raise statements and find which ones can be # rewritten for inst in block.find_insts(ir.Raise): if inst.exception is None: # re-reraise exc_type, exc_args = ...
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 apply(self): """ Rewrite all matching setitems as static_setitems. """ new_block = self.block.copy() new_block.clear() for inst in self.block.body: if inst in self.raises: exc_type, exc_args = self.raises[inst] new_inst = ir.StaticRaise(exc_type, exc_args, ins...
def apply(self): """ Rewrite all matching setitems as static_setitems. """ new_block = self.block.copy() new_block.clear() for inst in self.block.body: if inst in self.raises: exc_type, exc_args = self.raises[inst] new_inst = ir.StaticRaise(exc_type, exc_args, ins...
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 hsail_atomic_add_tuple(context, builder, sig, args): aryty, indty, valty = sig.args ary, inds, val = args dtype = aryty.dtype if indty == types.intp: indices = [inds] # just a single integer indty = [indty] else: indices = cgutils.unpack_tuple(builder, inds, count=len(i...
def hsail_atomic_add_tuple(context, builder, sig, args): aryty, indty, valty = sig.args ary, inds, val = args dtype = aryty.dtype if indty == types.intp: indices = [inds] # just a single integer indty = [indty] else: indices = cgutils.unpack_tuple(builder, inds, count=len(i...
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 _stencil_wrapper(self, result, sigret, return_type, typemap, calltypes, *args): # Overall approach: # 1) Construct a string containing a function definition for the stencil function # that will execute the stencil kernel. This function definition includes a # unique stencil function name, the...
def _stencil_wrapper(self, result, sigret, return_type, typemap, calltypes, *args): # Overall approach: # 1) Construct a string containing a function definition for the stencil function # that will execute the stencil kernel. This function definition includes a # unique stencil function name, the...
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 np_interp_impl_inner(x, xp, fp, dtype): # NOTE: Do not refactor... see note in np_interp function impl below # this is a facsimile of arr_interp prior to 1.16: # https://github.com/numpy/numpy/blob/maintenance/1.15.x/numpy/core/src/multiarray/compiled_base.c # noqa: E501 # Permanent reference: ...
def np_interp_impl_inner(x, xp, fp, dtype): # NOTE: Do not refactor... see note in np_interp function impl below # this is a facsimile of arr_interp prior to 1.16: # https://github.com/numpy/numpy/blob/maintenance/1.15.x/numpy/core/src/multiarray/compiled_base.c # noqa: E501 # Permanent reference: ...
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 np_interp_impl_inner_factory(np117_nan_handling): def impl(x, xp, fp, dtype): # NOTE: Do not refactor... see note in np_interp function impl below # this is a facsimile of arr_interp post 1.16: # https://github.com/numpy/numpy/blob/maintenance/1.16.x/numpy/core/src/multiarray/compiled_ba...
def np_interp_impl_inner_factory(np117_nan_handling): def impl(x, xp, fp, dtype): # NOTE: Do not refactor... see note in np_interp function impl below # this is a facsimile of arr_interp post 1.16: # https://github.com/numpy/numpy/blob/maintenance/1.16.x/numpy/core/src/multiarray/compiled_ba...
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 impl(x, xp, fp, dtype): # NOTE: Do not refactor... see note in np_interp function impl below # this is a facsimile of arr_interp post 1.16: # https://github.com/numpy/numpy/blob/maintenance/1.16.x/numpy/core/src/multiarray/compiled_base.c # noqa: E501 # Permanent reference: # https://github.c...
def impl(x, xp, fp, dtype): # NOTE: Do not refactor... see note in np_interp function impl below # this is a facsimile of arr_interp post 1.16: # https://github.com/numpy/numpy/blob/maintenance/1.16.x/numpy/core/src/multiarray/compiled_base.c # noqa: E501 # Permanent reference: # https://github.c...
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 array_nonzero(context, builder, sig, args): aryty = sig.args[0] # Return type is a N-tuple of 1D C-contiguous arrays retty = sig.return_type outaryty = retty.dtype nouts = retty.count ary = make_array(aryty)(context, builder, args[0]) shape = cgutils.unpack_tuple(builder, ary.shape) ...
def array_nonzero(context, builder, sig, args): aryty = sig.args[0] # Return type is a N-tuple of 1D C-contiguous arrays retty = sig.return_type outaryty = retty.dtype nouts = retty.count ary = make_array(aryty)(context, builder, args[0]) shape = cgutils.unpack_tuple(builder, ary.shape) ...
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 _getitem_array1d(context, builder, arrayty, array, idx, wraparound): """ Look up and return an element from a 1D array. """ ptr = cgutils.get_item_pointer( context, builder, arrayty, array, [idx], wraparound=wraparound ) return load_item(context, builder, arrayty, ptr)
def _getitem_array1d(context, builder, arrayty, array, idx, wraparound): """ Look up and return an element from a 1D array. """ ptr = cgutils.get_item_pointer( builder, arrayty, array, [idx], wraparound=wraparound ) return load_item(context, builder, arrayty, ptr)
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 basic_indexing( context, builder, aryty, ary, index_types, indices, boundscheck=None ): """ Perform basic indexing on the given array. A (data pointer, shapes, strides) tuple is returned describing the corresponding view. """ zero = context.get_constant(types.intp, 0) shapes = cguti...
def basic_indexing(context, builder, aryty, ary, index_types, indices): """ Perform basic indexing on the given array. A (data pointer, shapes, strides) tuple is returned describing the corresponding view. """ zero = context.get_constant(types.intp, 0) shapes = cgutils.unpack_tuple(builder,...
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 _getitem_array_generic( context, builder, return_type, aryty, ary, index_types, indices ): """ Return the result of indexing *ary* with the given *indices*, returning either a scalar or a view. """ dataptr, view_shapes, view_strides = basic_indexing( context, builder, ...
def _getitem_array_generic( context, builder, return_type, aryty, ary, index_types, indices ): """ Return the result of indexing *ary* with the given *indices*, returning either a scalar or a view. """ dataptr, view_shapes, view_strides = basic_indexing( context, builder, aryty, ary, ind...
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 setitem_array(context, builder, sig, args): """ array[a] = scalar_or_array array[a,..,b] = scalar_or_array """ aryty, idxty, valty = sig.args ary, idx, val = args if isinstance(idxty, types.BaseTuple): index_types = idxty.types indices = cgutils.unpack_tuple(builder, idx...
def setitem_array(context, builder, sig, args): """ array[a] = scalar_or_array array[a,..,b] = scalar_or_array """ aryty, idxty, valty = sig.args ary, idx, val = args if isinstance(idxty, types.BaseTuple): index_types = idxty.types indices = cgutils.unpack_tuple(builder, idx...
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 fancy_getitem(context, builder, sig, args, aryty, ary, index_types, indices): shapes = cgutils.unpack_tuple(builder, ary.shape) strides = cgutils.unpack_tuple(builder, ary.strides) data = ary.data indexer = FancyIndexer(context, builder, aryty, ary, index_types, indices) indexer.prepare() ...
def fancy_getitem(context, builder, sig, args, aryty, ary, index_types, indices): shapes = cgutils.unpack_tuple(builder, ary.shape) strides = cgutils.unpack_tuple(builder, ary.strides) data = ary.data indexer = FancyIndexer(context, builder, aryty, ary, index_types, indices) indexer.prepare() ...
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 maybe_copy_source( context, builder, use_copy, srcty, src, src_shapes, src_strides, src_data ): ptrty = src_data.type copy_layout = "C" copy_data = cgutils.alloca_once_value(builder, src_data) copy_shapes = src_shapes copy_strides = None # unneeded for contiguous arrays with builder.i...
def maybe_copy_source( context, builder, use_copy, srcty, src, src_shapes, src_strides, src_data ): ptrty = src_data.type copy_layout = "C" copy_data = cgutils.alloca_once_value(builder, src_data) copy_shapes = src_shapes copy_strides = None # unneeded for contiguous arrays with builder.i...
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 src_getitem(source_indices): assert len(source_indices) == srcty.ndim src_ptr = cgutils.alloca_once(builder, ptrty) with builder.if_else(use_copy, likely=False) as (if_copy, otherwise): with if_copy: builder.store( cgutils.get_item_pointer2( contex...
def src_getitem(source_indices): assert len(source_indices) == srcty.ndim src_ptr = cgutils.alloca_once(builder, ptrty) with builder.if_else(use_copy, likely=False) as (if_copy, otherwise): with if_copy: builder.store( cgutils.get_item_pointer2( builde...
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 fancy_setslice(context, builder, sig, args, index_types, indices): """ Implement slice assignment for arrays. This implementation works for basic as well as fancy indexing, since there's no functional difference between the two for indexed assignment. """ aryty, _, srcty = sig.args ary,...
def fancy_setslice(context, builder, sig, args, index_types, indices): """ Implement slice assignment for arrays. This implementation works for basic as well as fancy indexing, since there's no functional difference between the two for indexed assignment. """ aryty, _, srcty = sig.args ary,...
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 array_repeat(a, repeats): def array_repeat_impl(a, repeats): return np.repeat(a, repeats) return array_repeat_impl
def array_repeat(a, repeats): def array_repeat_impl(a, repeat): return np.repeat(a, repeat) return array_repeat_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 array_repeat_impl(a, repeats): return np.repeat(a, repeats)
def array_repeat_impl(a, repeat): return np.repeat(a, repeat)
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 array_complex_attr(context, builder, typ, value, attr): """ Given a complex array, it's memory layout is: R C R C R C ^ ^ ^ (`R` indicates a float for the real part; `C` indicates a float for the imaginary part; the `^` indicates the start of each element) To get the...
def array_complex_attr(context, builder, typ, value, attr): """ Given a complex array, it's memory layout is: R C R C R C ^ ^ ^ (`R` indicates a float for the real part; `C` indicates a float for the imaginery part; the `^` indicates the start of each element) To get the...
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_nditer_cls(nditerty): """ Return the Structure representation of the given *nditerty* (an instance of types.NumpyNdIterType). """ ndim = nditerty.ndim layout = nditerty.layout narrays = len(nditerty.arrays) nshapes = ndim if nditerty.need_shaped_indexing else 1 class BaseSu...
def make_nditer_cls(nditerty): """ Return the Structure representation of the given *nditerty* (an instance of types.NumpyNdIterType). """ ndim = nditerty.ndim layout = nditerty.layout narrays = len(nditerty.arrays) nshapes = ndim if nditerty.need_shaped_indexing else 1 class BaseSu...
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 compute_pointer(self, context, builder, indices, arrty, arr): assert len(indices) == self.ndim return cgutils.get_item_pointer( context, builder, arrty, arr, indices, wraparound=False )
def compute_pointer(self, context, builder, indices, arrty, arr): assert len(indices) == self.ndim return cgutils.get_item_pointer(builder, arrty, arr, indices, wraparound=False)
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_flattening_iter_cls(flatiterty, kind): assert kind in ("flat", "ndenumerate") array_type = flatiterty.array_type if array_type.layout == "C": class CContiguousFlatIter(cgutils.create_struct_proxy(flatiterty)): """ .flat() / .ndenumerate() implementation for C-con...
def _make_flattening_iter_cls(flatiterty, kind): assert kind in ("flat", "ndenumerate") array_type = flatiterty.array_type if array_type.layout == "C": class CContiguousFlatIter(cgutils.create_struct_proxy(flatiterty)): """ .flat() / .ndenumerate() implementation for C-con...
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 _ptr_for_index(self, context, builder, arrty, arr, index): ndim = arrty.ndim shapes = cgutils.unpack_tuple(builder, arr.shape, count=ndim) strides = cgutils.unpack_tuple(builder, arr.strides, count=ndim) # First convert the flattened index into a regular n-dim index indices = [] for dim in ...
def _ptr_for_index(self, context, builder, arrty, arr, index): ndim = arrty.ndim shapes = cgutils.unpack_tuple(builder, arr.shape, count=ndim) strides = cgutils.unpack_tuple(builder, arr.strides, count=ndim) # First convert the flattened index into a regular n-dim index indices = [] for dim in ...
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 _arange_dtype(*args): bounds = [a for a in args if not isinstance(a, types.NoneType)] if any(isinstance(a, types.Complex) for a in bounds): dtype = types.complex128 elif any(isinstance(a, types.Float) for a in bounds): dtype = types.float64 else: # numerous attempts were mad...
def _arange_dtype(*args): bounds = [a for a in args if not isinstance(a, types.NoneType)] if any(isinstance(a, types.Complex) for a in bounds): dtype = types.complex128 elif any(isinstance(a, types.Float) for a in bounds): dtype = types.float64 else: # It's not possible for the ...
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 numpy_linspace_3(context, builder, sig, args): dtype = as_dtype(sig.return_type.dtype) def linspace(start, stop, num): arr = np.empty(num, dtype) if num == 0: return arr div = num - 1 delta = stop - start arr[0] = start for i in range(1, num): ...
def numpy_linspace_3(context, builder, sig, args): dtype = as_dtype(sig.return_type.dtype) def linspace(start, stop, num): arr = np.empty(num, dtype) div = num - 1 delta = stop - start arr[0] = start for i in range(1, num): arr[i] = start + delta * (i / div) ...
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 linspace(start, stop, num): arr = np.empty(num, dtype) if num == 0: return arr div = num - 1 delta = stop - start arr[0] = start for i in range(1, num): arr[i] = start + delta * (i / div) return arr
def linspace(start, stop, num): arr = np.empty(num, dtype) div = num - 1 delta = stop - start arr[0] = start for i in range(1, num): arr[i] = start + delta * (i / div) return arr
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 _array_copy(context, builder, sig, args): """ Array copy. """ arytype = sig.args[0] ary = make_array(arytype)(context, builder, value=args[0]) shapes = cgutils.unpack_tuple(builder, ary.shape) rettype = sig.return_type ret = _empty_nd_impl(context, builder, rettype, shapes) src...
def _array_copy(context, builder, sig, args): """ Array copy. """ arytype = sig.args[0] ary = make_array(arytype)(context, builder, value=args[0]) shapes = cgutils.unpack_tuple(builder, ary.shape) rettype = sig.return_type ret = _empty_nd_impl(context, builder, rettype, shapes) src...
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 array_astype(context, builder, sig, args): arytype = sig.args[0] ary = make_array(arytype)(context, builder, value=args[0]) shapes = cgutils.unpack_tuple(builder, ary.shape) rettype = sig.return_type ret = _empty_nd_impl(context, builder, rettype, shapes) src_data = ary.data dest_data ...
def array_astype(context, builder, sig, args): arytype = sig.args[0] ary = make_array(arytype)(context, builder, value=args[0]) shapes = cgutils.unpack_tuple(builder, ary.shape) rettype = sig.return_type ret = _empty_nd_impl(context, builder, rettype, shapes) src_data = ary.data dest_data ...
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 assign_sequence_to_array( context, builder, data, shapes, strides, arrty, seqty, seq ): """ Assign a nested sequence contents to an array. The shape must match the sequence's structure. """ def assign_item(indices, valty, val): ptr = cgutils.get_item_pointer2( context, ...
def assign_sequence_to_array( context, builder, data, shapes, strides, arrty, seqty, seq ): """ Assign a nested sequence contents to an array. The shape must match the sequence's structure. """ def assign_item(indices, valty, val): ptr = cgutils.get_item_pointer2( builder, ...
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 assign_item(indices, valty, val): ptr = cgutils.get_item_pointer2( context, builder, data, shapes, strides, arrty.layout, indices, wraparound=False ) val = context.cast(builder, val, valty, arrty.dtype) store_item(context, builder, arrty, val, ptr)
def assign_item(indices, valty, val): ptr = cgutils.get_item_pointer2( builder, data, shapes, strides, arrty.layout, indices, wraparound=False ) val = context.cast(builder, val, valty, arrty.dtype) store_item(context, builder, arrty, val, ptr)
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_concatenate( context, builder, axis, arrtys, arrs, arr_shapes, arr_strides, retty, ret_shapes ): """ Concatenate arrays along the given axis. """ assert len(arrtys) == len(arrs) == len(arr_shapes) == len(arr_strides) zero = cgutils.intp_t(0) # Allocate return array ret = _empty...
def _do_concatenate( context, builder, axis, arrtys, arrs, arr_shapes, arr_strides, retty, ret_shapes ): """ Concatenate arrays along the given axis. """ assert len(arrtys) == len(arrs) == len(arr_shapes) == len(arr_strides) zero = cgutils.intp_t(0) # Allocate return array ret = _empty...
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 __init__(self, typing_context): _load_global_helpers() self.address_size = utils.MACHINE_BITS self.typing_context = typing_context # A mapping of installed registries to their loaders self._registries = {} # Declarations loaded from registries and other sources self._defns = defaultdic...
def __init__(self, typing_context): _load_global_helpers() self.address_size = utils.MACHINE_BITS self.typing_context = typing_context # A mapping of installed registries to their loaders self._registries = {} # Declarations loaded from registries and other sources self._defns = defaultdic...
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 refresh(self): """ Refresh context with new declarations from known registries. Useful for third-party extensions. """ # Populate built-in registry from . import ( arraymath, enumimpl, iterators, linalg, numbers, optional, polynomial, ...
def refresh(self): """ Refresh context with new declarations from known registries. Useful for third-party extensions. """ # Populate built-in registry from . import ( arraymath, enumimpl, iterators, linalg, numbers, optional, polynomial, ...
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_compare(self, builder, key, argtypes, args): """ Compare the given LLVM values of the given Numba types using the comparison *key* (e.g. '=='). The values are first cast to a common safe conversion type. """ at, bt = argtypes av, bv = args ty = self.typing_context.unify_type...
def generic_compare(self, builder, key, argtypes, args): """ Compare the given LLVM values of the given Numba types using the comparison *key* (e.g. '=='). The values are first cast to a common safe conversion type. """ at, bt = argtypes av, bv = args ty = self.typing_context.unify_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 is_true(self, builder, typ, val): """ Return the truth value of a value of the given Numba type. """ fnty = self.typing_context.resolve_value_type(bool) sig = fnty.get_call_type(self.typing_context, (typ,), {}) impl = self.get_function(fnty, sig) return impl(builder, (val,))
def is_true(self, builder, typ, val): """ Return the truth value of a value of the given Numba type. """ impl = self.get_function(bool, typing.signature(types.boolean, typ)) return impl(builder, (val,))
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 __init__(self, imp, context, sig): self._callable = _wrap_missing_loc(imp) self._imp = self._callable() self._context = context self._sig = sig
def __init__(self, imp, context, sig): self._imp = _wrap_missing_loc(imp) self._context = context self._sig = 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 __repr__(self): return "<wrapped %s>" % repr(self._callable)
def __repr__(self): return "<wrapped %s>" % self._imp
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 __call__(self): """Wrap function for missing ``loc`` keyword argument. Otherwise, return the original *fn*. """ fn = self.func if not _has_loc(fn): def wrapper(*args, **kwargs): kwargs.pop("loc") # drop unused loc return fn(*args, **kwargs) # Copy the f...
def __call__(self, builder, args, loc=None): res = self._imp(self._context, builder, self._sig, args, loc=loc) self._context.add_linking_libs(getattr(self, "libs", ())) return res
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 impl(a, b): return not val
def impl(func, iterable): for x in iterable: if func(x): yield x
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 return_user_exc(self, builder, exc, exc_args=None, loc=None, func_name=None): try_info = getattr(builder, "_in_try_block", False) self.set_static_user_exc( builder, exc, exc_args=exc_args, loc=loc, func_name=func_name ) trystatus = self.check_try_status(builder) if try_info: # Th...
def return_user_exc(self, builder, exc, exc_args=None, loc=None, func_name=None): if exc is not None and not issubclass(exc, BaseException): raise TypeError("exc should be None or exception class, got %r" % (exc,)) if exc_args is not None and not isinstance(exc_args, tuple): raise TypeError("exc...
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 return_status_propagate(self, builder, status): trystatus = self.check_try_status(builder) excptr = self._get_excinfo_argument(builder.function) builder.store(status.excinfoptr, excptr) with builder.if_then(builder.not_(trystatus.in_try)): self._return_errcode_raw(builder, status.code)
def return_status_propagate(self, builder, status): excptr = self._get_excinfo_argument(builder.function) builder.store(status.excinfoptr, excptr) self._return_errcode_raw(builder, status.code)
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 dump(header, body): if config.HIGHLIGHT_DUMPS: try: import pygments except ImportError: msg = "Please install pygments to see highlighted dumps" raise ValueError(msg) else: from pygments import highlight from pygments.lexers imp...
def dump(header, body): print(header.center(80, "-")) print(body) print("=" * 80)
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 _check_llvm_bugs(self): """ Guard against some well-known LLVM bug(s). """ # Check the locale bug at https://github.com/numba/numba/issues/1569 # Note we can't cache the result as locale settings can change # across a process's lifetime. Also, for this same reason, # the check here is a...
def _check_llvm_bugs(self): """ Guard against some well-known LLVM bug(s). """ # Check the locale bug at https://github.com/numba/numba/issues/1569 # Note we can't cache the result as locale settings can change # accross a process's lifetime. Also, for this same reason, # the check here is ...
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 tuple_hash(val): if _py38_or_later or isinstance(val, types.Sequence): def impl(val): return _tuple_hash(val) return impl else: def impl(val): hashed = _Py_hash_t(_tuple_hash_resolve(val)) return process_return(hashed) return impl
def tuple_hash(val): if isinstance(val, types.Sequence): def impl(val): return _tuple_hash(val) return impl else: def impl(val): hashed = _Py_hash_t(_tuple_hash_resolve(val)) return process_return(hashed) return 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 _load_effective_address(self, indices): return cgutils.get_item_pointer2( self.context, self.builder, data=self.data, shape=self.shape, strides=self.strides, layout=self.layout, inds=indices, )
def _load_effective_address(self, indices): return cgutils.get_item_pointer2( self.builder, data=self.data, shape=self.shape, strides=self.strides, layout=self.layout, inds=indices, )
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 set_flags(self, flags): """ Provide default flags setting logic. Subclass can override. """ kws = self.values.copy() if kws.pop("nopython", False) == False: flags.set("enable_pyobject") if kws.pop("forceobj", False): flags.set("force_pyobject") if kws.pop("looplift...
def set_flags(self, flags): """ Provide default flags setting logic. Subclass can override. """ kws = self.values.copy() if kws.pop("nopython", False) == False: flags.set("enable_pyobject") if kws.pop("forceobj", False): flags.set("force_pyobject") if kws.pop("looplift...
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_quicksort_impl(wrap, lt=None, is_argsort=False, is_list=False): intp = types.intp zero = intp(0) # Two subroutines to make the core algorithm generic wrt. argsort # or normal sorting. Note the genericity may make basic sort() # slightly slower (~5%) if is_argsort: if is_list: ...
def make_quicksort_impl(wrap, lt=None, is_argsort=False): intp = types.intp zero = intp(0) # Two subroutines to make the core algorithm generic wrt. argsort # or normal sorting. Note the genericity may make basic sort() # slightly slower (~5%) if is_argsort: @wrap def make_res...
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_res(A): return np.arange(A.size)
def make_res(A): return A
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 _fill_ufunc_db(ufunc_db): # some of these imports would cause a problem of circular # imports if done at global scope when importing the numba # module. from . import numbers, npyfuncs, mathimpl, cmathimpl from numba import numpy_support v = numpy_support.version ufunc_db[np.negative] ...
def _fill_ufunc_db(ufunc_db): # some of these imports would cause a problem of circular # imports if done at global scope when importing the numba # module. from . import numbers, npyfuncs, mathimpl, cmathimpl from numba import numpy_support v = numpy_support.version ufunc_db[np.negative] ...
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 _extract_loop_lifting_candidates(cfg, blocks): """ Returns a list of loops that are candidate for loop lifting """ # check well-formed-ness of the loop def same_exit_point(loop): "all exits must point to the same location" outedges = set() for k in loop.exits: ...
def _extract_loop_lifting_candidates(cfg, blocks): """ Returns a list of loops that are candidate for loop lifting """ # check well-formed-ness of the loop def same_exit_point(loop): "all exits must point to the same location" outedges = set() for k in loop.exits: ...
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 same_exit_point(loop): "all exits must point to the same location" outedges = set() for k in loop.exits: succs = set(x for x, _ in cfg.successors(k)) if not succs: # If the exit point has no successor, it contains an return # statement, which is not handled by the...
def same_exit_point(loop): "all exits must point to the same location" outedges = set() for k in loop.exits: succs = set(x for x, _ in cfg.successors(k)) if not succs: # If the exit point has no successor, it contains an return # statement, which is not handled by the...
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 _loop_lift_get_candidate_infos(cfg, blocks, livemap): """ Returns information on looplifting candidates. """ loops = _extract_loop_lifting_candidates(cfg, blocks) loopinfos = [] for loop in loops: [callfrom] = loop.entries # requirement checked earlier an_exit = next(iter(lo...
def _loop_lift_get_candidate_infos(cfg, blocks, livemap): """ Returns information on looplifting candidates. """ loops = _extract_loop_lifting_candidates(cfg, blocks) loopinfos = [] for loop in loops: [callfrom] = loop.entries # requirement checked earlier an_exit = next(iter(lo...
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 _loop_lift_modify_blocks( func_ir, loopinfo, blocks, typingctx, targetctx, flags, locals ): """ Modify the block inplace to call to the lifted-loop. Returns a dictionary of blocks of the lifted-loop. """ from numba.dispatcher import LiftedLoop # Copy loop blocks loop = loopinfo.loop...
def _loop_lift_modify_blocks( func_ir, loopinfo, blocks, typingctx, targetctx, flags, locals ): """ Modify the block inplace to call to the lifted-loop. Returns a dictionary of blocks of the lifted-loop. """ from numba.dispatcher import LiftedLoop # Copy loop blocks loop = loopinfo.loop...
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 loop_lifting(func_ir, typingctx, targetctx, flags, locals): """ Loop lifting transformation. Given a interpreter `func_ir` returns a 2 tuple of `(toplevel_interp, [loop0_interp, loop1_interp, ....])` """ blocks = func_ir.blocks.copy() cfg = compute_cfg_from_blocks(blocks) loopinfos ...
def loop_lifting(func_ir, typingctx, targetctx, flags, locals): """ Loop lifting transformation. Given a interpreter `func_ir` returns a 2 tuple of `(toplevel_interp, [loop0_interp, loop1_interp, ....])` """ blocks = func_ir.blocks.copy() cfg = compute_cfg_from_blocks(blocks) loopinfos ...
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 type_inference_stage( typingctx, interp, args, return_type, locals={}, raise_errors=True ): if len(args) != interp.arg_count: raise TypeError("Mismatch number of argument types") warnings = errors.WarningsFixer(errors.NumbaWarning) infer = typeinfer.TypeInferer(typingctx, interp, warnings) ...
def type_inference_stage(typingctx, interp, args, return_type, locals={}): if len(args) != interp.arg_count: raise TypeError("Mismatch number of argument types") warnings = errors.WarningsFixer(errors.NumbaWarning) infer = typeinfer.TypeInferer(typingctx, interp, warnings) with typingctx.callst...
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 legalize_return_type(return_type, interp, targetctx): """ Only accept array return type iff it is passed into the function. Reject function object return types if in nopython mode. """ if not targetctx.enable_nrt and isinstance(return_type, types.Array): # Walk IR to discover all argumen...
def legalize_return_type(return_type, interp, targetctx): """ Only accept array return type iff it is passed into the function. Reject function object return types if in nopython mode. """ if not targetctx.enable_nrt and isinstance(return_type, types.Array): # Walk IR to discover all argumen...
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 overloads""" if self._DEBUG: print("before overload inline".center(80, "-")) print(state.func_ir.dump()) print("".center(80, "-")) modified = False work_list = list(state.func_ir.blocks.items()) # use a work list, look for call si...
def run_pass(self, state): """Run inlining of overloads""" if config.DEBUG or self._DEBUG: print("before overload inline".center(80, "-")) print(state.func_ir.dump()) print("".center(80, "-")) modified = False work_list = list(state.func_ir.blocks.items()) # use a work list, ...
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, typeinfer, typevars, fnty): assert fnty context = typeinfer.context r = fold_arg_vars(typevars, self.args, self.vararg, self.kws) if r is None: # Cannot resolve call type until all argument types are known return pos_args, kw_args = r # Check argument to be pr...
def resolve(self, typeinfer, typevars, fnty): assert fnty context = typeinfer.context r = fold_arg_vars(typevars, self.args, self.vararg, self.kws) if r is None: # Cannot resolve call type until all argument types are known return pos_args, kw_args = r # Check argument to be pr...
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 unify(self, raise_errors=True): """ Run the final unification pass over all inferred types, and catch imprecise types. """ typdict = utils.UniqueDict() def find_offender(name, exhaustive=False): # finds the offending variable definition by name # if exhaustive is set it will...
def unify(self): """ Run the final unification pass over all inferred types, and catch imprecise types. """ typdict = utils.UniqueDict() def find_offender(name, exhaustive=False): # finds the offending variable definition by name # if exhaustive is set it will try and trace thro...
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 check_var(name): tv = self.typevars[name] if not tv.defined: if raise_errors: offender = find_offender(name) val = getattr(offender, "value", "unknown operation") loc = getattr(offender, "loc", ir.unknown_loc) msg = ( "Type of variable ...
def check_var(name): tv = self.typevars[name] if not tv.defined: offender = find_offender(name) val = getattr(offender, "value", "unknown operation") loc = getattr(offender, "loc", ir.unknown_loc) msg = "Type of variable '%s' cannot be determined, operation: %s, location: %s" ...
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_generator_type(self, typdict, retty, raise_errors=True): gi = self.generator_info arg_types = [None] * len(self.arg_names) for index, name in self.arg_names.items(): arg_types[index] = typdict[name] state_types = None try: state_types = [typdict[var_name] for var_name in gi....
def get_generator_type(self, typdict, retty): gi = self.generator_info arg_types = [None] * len(self.arg_names) for index, name in self.arg_names.items(): arg_types[index] = typdict[name] state_types = [typdict[var_name] for var_name in gi.state_vars] yield_types = [typdict[y.inst.value.name...
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 _unify_return_types(self, rettypes): if rettypes: unified = self.context.unify_types(*rettypes) if unified is None or not unified.is_precise(): def check_type(atype): lst = [] for k, v in self.typevars.items(): if atype == v.type: ...
def _unify_return_types(self, rettypes): if rettypes: unified = self.context.unify_types(*rettypes) if unified is None or not unified.is_precise(): def check_type(atype): lst = [] for k, v in self.typevars.items(): if atype == v.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 check_type(atype): lst = [] for k, v in self.typevars.items(): if atype == v.type: lst.append(k) returns = {} for x in reversed(lst): for block in self.func_ir.blocks.values(): for instr in block.find_insts(ir.Return): value = instr.value ...
def check_type(atype): lst = [] for k, v in self.typevars.items(): if atype == v.type: lst.append(k) returns = {} for x in reversed(lst): for block in self.func_ir.blocks.values(): for instr in block.find_insts(ir.Return): value = instr.value ...
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 constrain_statement(self, inst): if isinstance(inst, ir.Assign): self.typeof_assign(inst) elif isinstance(inst, ir.SetItem): self.typeof_setitem(inst) elif isinstance(inst, ir.StaticSetItem): self.typeof_static_setitem(inst) elif isinstance(inst, ir.DelItem): self.typ...
def constrain_statement(self, inst): if isinstance(inst, ir.Assign): self.typeof_assign(inst) elif isinstance(inst, ir.SetItem): self.typeof_setitem(inst) elif isinstance(inst, ir.StaticSetItem): self.typeof_static_setitem(inst) elif isinstance(inst, ir.DelItem): self.typ...
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 typeof_expr(self, inst, target, expr): if expr.op == "call": if isinstance(expr.func, ir.Intrinsic): sig = expr.func.type self.add_type(target.name, sig.return_type, loc=inst.loc) self.add_calltype(expr, sig) else: self.typeof_call(inst, target, ex...
def typeof_expr(self, inst, target, expr): if expr.op == "call": if isinstance(expr.func, ir.Intrinsic): sig = expr.func.type self.add_type(target.name, sig.return_type, loc=inst.loc) self.add_calltype(expr, sig) else: self.typeof_call(inst, target, ex...
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 __init__(self, dtype, count): self.dtype = dtype self.count = count name = "%s(%s x %d)" % ( self.__class__.__name__, dtype, count, ) super(UniTuple, self).__init__(name)
def __init__(self, dtype, count): self.dtype = dtype self.count = count name = "tuple(%s x %d)" % (dtype, count) super(UniTuple, self).__init__(name)
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 __init__(self, types): self.types = tuple(types) self.count = len(self.types) self.dtype = UnionType(types) name = "%s(%s)" % ( self.__class__.__name__, ", ".join(str(i) for i in self.types), ) super(Tuple, self).__init__(name)
def __init__(self, types): self.types = tuple(types) self.count = len(self.types) name = "(%s)" % ", ".join(str(i) for i in self.types) super(Tuple, self).__init__(name)
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_call_type(self, context, args, kws): failures = _ResolutionFailures(context, self, args, kws) for temp_cls in self.templates: temp = temp_cls(context) for uselit in [True, False]: try: if uselit: sig = temp.apply(args, kws) ...
def get_call_type(self, context, args, kws): failures = _ResolutionFailures(context, self, args, kws) for temp_cls in self.templates: temp = temp_cls(context) for uselit in [True, False]: try: if uselit: sig = temp.apply(args, kws) ...
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_getattr(self, typ, attr): """ Resolve getting the attribute *attr* (a string) on the Numba type. The attribute's type is returned, or None if resolution failed. """ def core(typ): out = self.find_matching_getattr_template(typ, attr) if out: return out["return...
def resolve_getattr(self, typ, attr): """ Resolve getting the attribute *attr* (a string) on the Numba type. The attribute's type is returned, or None if resolution failed. """ def core(typ): for attrinfo in self._get_attribute_templates(typ): ret = attrinfo.resolve(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 core(typ): out = self.find_matching_getattr_template(typ, attr) if out: return out["return_type"]
def core(typ): for attrinfo in self._get_attribute_templates(typ): ret = attrinfo.resolve(typ, attr) if ret is not None: return ret
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 _load_builtins(self): # Initialize declarations from . import builtins, arraydecl, npdatetime # noqa: F401 from . import ctypes_utils, bufproto # noqa: F401 from numba.unsafe import eh # noqa: F401 self.install_registry(templates.builtin_registry)
def _load_builtins(self): # Initialize declarations from . import builtins, arraydecl, npdatetime # noqa: F401 from . import ctypes_utils, bufproto # noqa: F401 self.install_registry(templates.builtin_registry)
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