def _list_product(num_list):
  """Computes product of all elements in a list."""
  product = 1
  for num in num_list:
    product *= num
  return product
Computes product of all elements in a list.
tensor2tensor/models/neural_architecture_search/nas_model_test.py