torch.BinaryKernelCPU
export interface BinaryKernelCPU<DT extends DType> {
/**
* Execute the binary operation.
*
* @param a - First input array
* @param b - Second input array
* @param out - Output array (pre-allocated)
* @param numel - Number of elements
*/
forward(a: TypedArrayFor<DT>, b: TypedArrayFor<DT>, out: TypedArrayFor<DT>, numel: number): void;
}DTextends DTypeforward((a: TypedArrayFor<DT>, b: TypedArrayFor<DT>, out: TypedArrayFor<DT>, numel: number) => void)- – Execute the binary operation.
CPU kernel signature for binary operations.