Skip to content

Commit d1b6ce1

Browse files
committed
Remove saving result blob
1 parent 1183c3d commit d1b6ce1

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/cpp/src/rag/text_embedding_pipeline.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -416,24 +416,6 @@ class TextEmbeddingPipeline::TextEmbeddingPipelineImpl {
416416

417417
std::vector<std::vector<float>> result;
418418
const auto shape = last_hidden_state.get_shape();
419-
#if 1
420-
std::cout << "GenAI: Result shape: "<< std::endl;
421-
for (auto dim : shape) {
422-
std::cout << dim << std::endl;
423-
}
424-
425-
{
426-
const auto bin_path = std::string("genai_last_hidden_state_final") + std::string(".bin");
427-
{
428-
std::ofstream bin_file(bin_path, std::ios_base::out | std::ios_base::binary);
429-
auto blob_size = last_hidden_state.get_byte_size();
430-
if (blob_size > static_cast<decltype(blob_size)>(std::numeric_limits<std::streamsize>::max())) {
431-
OPENVINO_THROW("Blob size is too large to be represented on a std::streamsize!");
432-
}
433-
bin_file.write(static_cast<const char*>(last_hidden_state.data()), static_cast<std::streamsize>(blob_size));
434-
}
435-
}
436-
#endif
437419
const size_t batch_size = shape[0];
438420
const size_t hidden_size = shape[1];
439421

0 commit comments

Comments
 (0)