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

Function stack

language/mentionmemory/tasks/mention_memory_task_test.py:37–39  ·  view source on GitHub ↗
(examples)

Source from the content-addressed store, hash-verified

35
36
37def stack(examples):
38 features = examples[0].keys()
39 return {k: np.stack([example[k] for example in examples]) for k in features}
40
41
42class MentionMemoryTaskTest(test_utils.TestCase):

Callers 2

sample_batchMethod · 0.70
run_modelMethod · 0.70

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…