Skip to content

Commit

Permalink
Ensure index_codecs chain is parsed correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoj613 committed Jul 12, 2024
1 parent 90e769c commit e34b5d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/codecs/array_to_bytes.ml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ end = struct
Result.error @@ `Sharding (t.chunk_shape, repr.shape, msg))
>>= fun () ->
parse_chain repr t.codecs >>= fun () ->
parse_chain repr t.index_codecs
(* must add one dimension to the representation of the index array. *)
parse_chain
{repr with shape = Array.append repr.shape [|2|]} t.index_codecs

let compute_encoded_size input_size t =
List.fold_left BytesToBytes.compute_encoded_size
Expand Down

0 comments on commit e34b5d3

Please sign in to comment.