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

Function tensorize

language/boolq/run_recurrent_model_boolq.py:409–412  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

407 unbatched = load_data(is_train)
408
409 def tensorize(x):
410 x["premise"] = tensorize_text_fn(x["premise"])
411 x["hypothesis"] = tensorize_text_fn(x["hypothesis"])
412 return x
413
414 unbatched = unbatched.map(tensorize)
415

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…