private <T, S extends AbstractBlockingStub<S>> T invokeGrpc(S stub, Function<S, T> invocation) {
        try {
            return invocation.apply(stub);
        } catch (StatusRuntimeException e) {
            throw new TritonException(e);
        }
    }
Converts {@link TensorType} using mapping rule similar to TensorConverter
model-integration/src/main/java/ai/vespa/triton/TritonOnnxClient.java