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

Method Build

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

Builds a `Computation` from the contents of the builder. Args: root: if not None, the operator containing the return value of the computation. Returns: A `Computation`.

(self, root=None, backend=None)

Source from the content-addressed store, hash-verified

717 self._parameter_numbering = itertools.count()
718
719 def Build(self, root=None, backend=None):
720 """Builds a `Computation` from the contents of the builder.
721
722 Args:
723 root: if not None, the operator containing the return value of the
724 computation.
725
726 Returns:
727 A `Computation`.
728 """
729 if root is not None:
730 return Computation(self._builder.Build(root), backend=backend)
731 else:
732 return Computation(self._builder.Build(), backend=backend)
733
734 def GetShape(self, operand):
735 return self._builder.GetShape(operand)

Callers 15

ExampleComputationMethod · 0.95
testHashMethod · 0.95
PYBIND11_MODULEFunction · 0.45
_ExecuteMethod · 0.45
_ExecuteMethod · 0.45
_ConvertAndTestMethod · 0.45
testTupleMethod · 0.45
testRngNormalMethod · 0.45
testRngUniformF32Method · 0.45
testRngUniformS32Method · 0.45
testSortKeyValMethod · 0.45

Calls 1

ComputationClass · 0.85

Tested by 15

ExampleComputationMethod · 0.76
testHashMethod · 0.76
_ExecuteMethod · 0.36
_ExecuteMethod · 0.36
_ConvertAndTestMethod · 0.36
testTupleMethod · 0.36
testRngNormalMethod · 0.36
testRngUniformF32Method · 0.36
testRngUniformS32Method · 0.36
testSortKeyValMethod · 0.36