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

Method PushExample

language/realm/preprocessing.py:44–49  ·  view source on GitHub ↗
(self, example, timeout)

Source from the content-addressed store, hash-verified

42 return self._queue.get()
43
44 def PushExample(self, example, timeout):
45 try:
46 self._queue.put(example, timeout=timeout)
47 except queue.Full:
48 tf.logging.info("Failed to push example. Queue is full.")
49 return # Ignore
50
51 def QueueSize(self):
52 return self._queue.qsize()

Callers 1

push_examplesFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected