|
IRON c0fa95fa5b5e3bdca375c4f4372c0fdc98022451
|


Public Member Functions | |
| __init__ (self, str name, list[type[np.ndarray]|np.dtype] arg_types=[]) | |
| __call__ (self, *args, **kwargs) | |
Public Member Functions inherited from iron.resolvable.Resolvable | |
| None | resolve (cls, ir.Location|None loc=None, ir.InsertionPoint|None ip=None) |
Protected Attributes | |
| _name | |
| _arg_types | |
| _op | |
Base class for kernel-like objects that resolve to FuncOp.
| iron.kernel.BaseKernel.__init__ | ( | self, | |
| str | name, | ||
| list[type[np.ndarray] | np.dtype] | arg_types = [] |
||
| ) |
Initialize base kernel.
Args:
name (str): The name of the function
arg_types (list[type[np.ndarray] | np.dtype], optional): The type signature of the function. Defaults to [].
Reimplemented in iron.kernel.Kernel, and iron.kernel.ExternalFunction.
| iron.kernel.BaseKernel.__call__ | ( | self, | |
| * | args, | ||
| ** | kwargs | ||
| ) |
Call the kernel with the given arguments.
|
protected |
|
protected |
|
protected |