MCPcopy Create free account
hub / github.com/google-research/language / flatten_list

Function flatten_list

language/realm/featurization.py:614–619  ·  view source on GitHub ↗
(seq)

Source from the content-addressed store, hash-verified

612
613
614def flatten_list(seq):
615 flat = []
616 for sublist in seq:
617 for item in sublist:
618 flat.append(item)
619 return flat
620
621
622def truncate_or_pad(seq, seq_len, pad_val):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…