function unaryKernelFunc(name, op, dtype) {
    const impl = (0, _unaryImpl.createSimpleUnaryImpl)(op);
    return unaryKernelFuncFromImpl(name, impl, dtype);
}
Template that creates a `KernelFunc` for unary ops from the given
`SimpleUnaryImpl`..
@param name Kernel name.
@param unaryImpl A `SimpleUnaryImpl` that implements the op.
@param dtype Optional. If set, the result has this dtype. Otherwise, the
    result has the same dtype as the input. This is mainly used in certain
    kernels that return bool type, such as isFinite, isInf, etc.