jax.experimental.pallas.next_power_of_2

jax.experimental.pallas.next_power_of_2#

jax.experimental.pallas.next_power_of_2(x)[source]#

Returns the next power of two greater than or equal to x.

Parameters:

x (int)

Return type:

int