Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
khurram-ghani committed Nov 17, 2023
1 parent cfbb790 commit c57b45b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trieste/acquisition/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def wrapper(x: TensorType) -> TensorType:
if length == 0:
return fn(x)

# Use int64 to calculate the input tensor size, otherwise we can overflow for large tensors.
elements_per_block = tf.size(x, out_type=tf.int64) / length
blocks_per_batch = tf.cast(tf.math.ceil(split_size / elements_per_block), tf.int32)

Expand Down

0 comments on commit c57b45b

Please sign in to comment.