ByteBuffer bytes(Onnx.TensorProto tensorProto) {
            ByteString byteString = tensorProto.getRawData();
            return byteString.asReadOnlyByteBuffer().order(ByteOrder.LITTLE_ENDIAN);
        }
Allows reading values from buffers of various numeric types as bytes
model-integration/src/main/java/ai/vespa/rankingexpression/importer/onnx/TensorConverter.java