xnn.common.cpu_kernels.Launch#

class xnn.common.cpu_kernels.Launch(lib, tensors, fs, ints, n, targets=())[source]#

Bases: object

A kernel launch with its arguments packed once: calling it runs the kernel on the tensors’ current contents (they must stay allocated and in place).

bind(j, tensor)[source]#

Point the j-th tensor argument at tensor (contiguous, of the same dtype and size).

Parameters: