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)
| 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) |