From 77dd5d05a52f34ac6e267f13f7464ab6c9020f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20du=20Hamel?= Date: Wed, 25 Sep 2024 00:03:39 +0200 Subject: [PATCH] compress: update comment --- examples/compress/compress.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/compress/compress.cpp b/examples/compress/compress.cpp index 736a5bf6a8e0a..7636019e2e7f4 100644 --- a/examples/compress/compress.cpp +++ b/examples/compress/compress.cpp @@ -133,14 +133,13 @@ std::vector encode(llama_context *ctx, std::vector inp, gp int block_size = (bit_offset + PAD) / 8 - block_start; if (block_size >= 256) { - // TODO: figure it out - LOG_ERR("OOPS"); + // TODO: handle more than 256 bytes of block data + // (maybe allow multiple blocks in a row) + LOG_ERR("Block too big %d >= 256", block_size); exit(-1); } sample_ids_bitpacked[block_start + 1] = block_size & 0xff; - // TODO: handle more than 256 bits of block data (multiple blocks or bigger header?) - // sample_ids_bitpacked[block_start + 2] = block_size >> 8; // put last bytes if (PAD)