From 5ab11c35a9d418236ee06816d97490c8230ac2d0 Mon Sep 17 00:00:00 2001 From: Sax Authors Date: Tue, 13 Aug 2024 23:10:49 -0700 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 662789333 Change-Id: I5ee8e973aafc0c24d6fe2af4376c855f96dcacb1 --- saxml/client/cc/sax.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/saxml/client/cc/sax.cc b/saxml/client/cc/sax.cc index 7e7df51..3285160 100644 --- a/saxml/client/cc/sax.cc +++ b/saxml/client/cc/sax.cc @@ -979,6 +979,7 @@ absl::Status VisionModel::TokenToVideo( char* errMsgStr = nullptr; int errCode = 0; std::vector token_buffers; + token_buffers.reserve(tokens.size()); for (const auto& token : tokens) { token_buffers.push_back( const_cast(reinterpret_cast(&token)));