torch.KernelRegistry.hasScalarKernel kernelRegistry.hasScalarKernel(op: string, dtype: DType, device: Device): boolean Check if a scalar kernel exists for (op, dtype, device). Parameters opstringdtypeDTypedeviceDevice Returns boolean