jraph/ogb_examples/train.py
def _nearest_bigger_power_of_two(x: int) -> int:
  """Computes the nearest power of two greater than x for padding."""
  y = 2
  while y < x:
    y *= 2
  return y
Computes the nearest power of two greater than x for padding.
Computes the nearest power of two greater than x for padding.
Computes the nearest power of two greater than x for padding .
def _nearest_bigger_power_of_two(x: int) -> int:
  y = 2
  while y < x:
    y *= 2
  return y
def _nearest_bigger_power_of_two ( x : int ) -> int : y = 2 while y < x : y *= 2 return y
Computes the nearest power of two greater than x for padding.
Computes the nearest power of two greater than x for padding .
"""Computes the nearest power of two greater than x for padding."""
x
int