Skip to content

Commit

Permalink
chore(gpu): do not unwrap in blocks_of, to have the same behavior as …
Browse files Browse the repository at this point in the history
…the CPU
  • Loading branch information
agnesLeroy committed Oct 3, 2024
1 parent 54a08af commit 123c764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tfhe/src/integer/gpu/ciphertext/compressed_ciphertext_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ impl CudaCompressedCiphertextList {
decomp_key: &CudaDecompressionKey,
streams: &CudaStreams,
) -> Option<(CudaRadixCiphertext, DataKind)> {
let preceding_infos = self.info.get(..index).unwrap();
let current_info = self.info.get(index).copied().unwrap();
let preceding_infos = self.info.get(..index)?;
let current_info = self.info.get(index).copied()?;

let start_block_index: usize = preceding_infos
.iter()
Expand Down

0 comments on commit 123c764

Please sign in to comment.