File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments