IRON 1.0
|
Public Member Functions | |
__init__ (self, xclbin_path, insts_path, device_index=0, kernel_name="PP_FD_PRE") | |
__call__ (self, *args) | |
__del__ (self) | |
Private Attributes | |
__device | |
__xclbin | |
__context | |
__kernel | |
__n_insts | |
__insts_buffer_bo | |
NPUKernel class wrapper for NPU kernels.
iron.jit.NPUKernel.__init__ | ( | self, | |
xclbin_path, | |||
insts_path, | |||
device_index = 0 , |
|||
kernel_name = "PP_FD_PRE" |
|||
) |
Initialize the NPUKernel object. Parameters: xclbin_path (str): Path to the XCLBIN file containing the kernel. insts_path (str): Path to the instruction binary file for the kernel. device_index (int, optional): Index of the device. Defaults to 0. kernel_name (str, optional): Name of the kernel. Defaults to "PP_FD_PRE".
iron.jit.NPUKernel.__del__ | ( | self | ) |
Destructor to clean up resources and delete the kernel and device objects.
iron.jit.NPUKernel.__call__ | ( | self, | |
* | args | ||
) |
Allows the kernel to be called as a function with the provided arguments. Parameters: args (IRON Tensors): Arguments to pass to the kernel.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |