@Test
    public void testElementwiseOperators7() throws ParseException {
        Tensor x = evaluate("tensor(d0[7]):[-1.0, -0.5, -0.1, 0.0, 0.1, 0.5, 1.0]");
        assertEval("acos", x, evaluate("acos(x)", x));
        assertEval("asin", x, evaluate("asin(x)", x));
        assertEval("atan", x, evaluate("atan(x)", x));
        assertEval("cos", x, evaluate("cos(x)", x));
        assertEval("sin", x, evaluate("sin(x)", x));
        assertEval("tan", x, evaluate("tan(x)", x));
        assertEval("tanh", x, evaluate("tanh(x)", x));
        assertEval("neg", x, evaluate("-x", x));
        assertEval("sigmoid", x, evaluate("sigmoid(x)", x));
        assertEval("exp", x, evaluate("exp(x)", x));
        assertEval("floor", x, evaluate("floor(x)", x));
        assertEval("ceil", x, evaluate("ceil(x)", x));
        assertEval("abs", x, evaluate("abs(x)", x));

        assertEval("relu", x, evaluate("max(0, x)", x));
        assertEval("elu", x, evaluate("map(x, f(a)(if(a < 0, 1.0 * (exp(a)-1), a)))", x));
        assertEval("elu", x, evaluate("map(x, f(a)(if(a < 0, 0.5 * (exp(a)-1), a)))", x), createAttribute("alpha", 0.5f));
        assertEval("selu", x, evaluate("map(x, f(a)(1.050700987 * if(a >= 0, a, 1.673263242 * (exp(a) - 1))))", x));
        assertEval("selu", x, evaluate("map(x, f(a)(1.0 * if(a >= 0, a, 1.5 * (exp(a) - 1))))", x), createAttributes().attr("gamma", 1.0f).attr("alpha", 1.5f).build());
        assertEval("leakyrelu", x, evaluate("max(0.01 * x, x)", x));
        assertEval("leakyrelu", x, evaluate("max(0.001 * x, x)", x), createAttribute("alpha", 0.001f));

        x = evaluate("tensor(d0[7]):[-40.0, -0.5, -0.1, 0.0, 0.1, 0.5, 40.0]");
        assertEval("erf", x, evaluate("erf(x)", x));

        x = evaluate("tensor(d0[3]):[0.01, 1.0, 10.0]");
        assertEval("log", x, evaluate("log(x)", x));
        assertEval("sqrt", x, evaluate("sqrt(x)", x));
        assertEval("reciprocal", x, evaluate("map(x, f(a)(1.0 / a))", x));
    }
Unit tests for ONNX operators. The number on the test reflects the minimum
opset number for the operations tested.

@author lesters
model-integration/src/test/java/ai/vespa/rankingexpression/importer/onnx/OnnxOperationsTestCase.java