private static int calculateThreads(int t) {
            if (t >= 0) return t;
            return Math.max(1, (int) Math.ceil(-1d * Runtime.getRuntime().availableProcessors() / t));
        }
Sets the number of threads for inter and intra op execution.
A negative number is interpreted as an inverse scaling factor <code>threads=CPU/-n</code>
model-integration/src/main/java/ai/vespa/modelintegration/evaluator/OnnxEvaluatorOptions.java