tf_1.8_xla_doc
Public Member Functions | List of all members
xla::HloComputation::Builder Class Reference

Builder class for HloComputation. More...

#include <hlo_computation.h>

Collaboration diagram for xla::HloComputation::Builder:
[legend]

Public Member Functions

std::unique_ptr< HloComputationBuild (HloInstruction *root_instruction=nullptr)
 Build and return an HloComputation. More...
 
HloInstructionAddInstruction (std::unique_ptr< HloInstruction > instruction)
 Add the instruction to the member instructions which is an array used to record instructions.
 

Detailed Description

Builder class for HloComputation.

Member Function Documentation

◆ Build()

std::unique_ptr< HloComputation > xla::HloComputation::Builder::Build ( HloInstruction root_instruction = nullptr)

Build and return an HloComputation.

  1. Traverse the instruction list to count the parameter_count.
  2. Use the root instruction (can be specified otherwise use the last added instruction) to build a HloComputation object and return it.

The documentation for this class was generated from the following files: