cerebras.modelzoo.data_preparation.utils.split_list#

cerebras.modelzoo.data_preparation.utils.split_list(l, n)[source]#

Splits list/string into n sized chunks.

Parameters
  • l (List[str]) – List or string to split.

  • n (int) – Number of chunks to split to.

Returns List[List]

List of lists containing split list/string.