MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / transfer_to_infeed

Function transfer_to_infeed

tensorflow/compiler/xla/python/xla_client.py:444–460  ·  view source on GitHub ↗

Transfers the given value into the XLA infeed queue. XLA's infeed queue is a single queue that feeds the "XLA virtual machine" with a totally ordered stream of values. This is dequeued from XLA computations via the Infeed() operation. Args: value: the value that the caller would like t

(value, device=None)

Source from the content-addressed store, hash-verified

442
443
444def transfer_to_infeed(value, device=None):
445 """Transfers the given value into the XLA infeed queue.
446
447 XLA's infeed queue is a single queue that feeds the "XLA virtual machine" with
448 a totally ordered stream of values. This is dequeued from XLA computations via
449 the Infeed() operation.
450
451 Args:
452 value: the value that the caller would like to enqueue into the XLA infeed
453 queue
454 device: the device to infeed the value to. Each device has a
455 distinct infeed queue.
456 """
457 # TODO(phawkins): support non-default backends.
458 backend = get_local_backend()
459 device = device or backend.local_devices()[0]
460 device.TransferToInfeed(value)
461
462
463def transfer_from_outfeed(shape, device=None):

Callers

nothing calls this directly

Calls 3

get_local_backendFunction · 0.85
local_devicesMethod · 0.45
TransferToInfeedMethod · 0.45

Tested by

no test coverage detected