function unaryKernelFunc(opSnippet) {
    return ({ inputs, backend }) => {
        const { x } = inputs;
        const webglBackend = backend;
        const program = new UnaryOpProgram(x.shape, opSnippet);
        return webglBackend.runWebGLProgram(program, [x], x.dtype);
    };
}
/**
 * Template that creates a `KernelFunc` for unary ops.
 * @param opSnippets Op snippet to create `UnaryOpProgram`.
 */
Template that creates a `KernelFunc` for unary ops.
@param opSnippets Op snippet to create `UnaryOpProgram`.
Template that creates a ` KernelFunc ` for unary ops . @param opSnippets Op snippet to create ` UnaryOpProgram ` .
function unaryKernelFunc(opSnippet) {
    return ({ inputs, backend }) => {
        const { x } = inputs;
        const webglBackend = backend;
        const program = new UnaryOpProgram(x.shape, opSnippet);
        return webglBackend.runWebGLProgram(program, [x], x.dtype);
    };
}
function unaryKernelFunc ( opSnippet ) { return ( { inputs , backend } ) => { const { x } = inputs ; const webglBackend = backend ; const program = new UnaryOpProgram ( x . shape , opSnippet ) ; return webglBackend . runWebGLProgram ( program , [ x ] , x . dtype ) ; } ; }
Template that creates a `KernelFunc` for unary ops.
Template that creates a ` KernelFunc ` for unary ops .