function createSimpleUnaryImpl(op) {
    return (values, dtype, attrs)=>{
        const newValues = (0, _tfjsCore.util).getArrayFromDType(dtype, values.length);
        for(let i = 0; i < values.length; ++i)newValues[i] = op(values[i], attrs);
        return newValues;
    };
}
Template that creates implementation for unary op.