private static Map<String, TensorType> toTensorTypes(Collection<GrpcService.ModelMetadataResponse.TensorMetadata> list) {
        return list.stream()
                .collect(Collectors.toMap(
                        tm -> OnnxImporter.asValidIdentifier(tm.getName()),
                        tm -> toVespaTensorType(tm.getDatatype(), tm.getShapeList())
                ));
    }
Converts {@link TensorType} using mapping rule similar to TensorConverter
model-integration/src/main/java/ai/vespa/triton/TritonOnnxClient.java