tf_1.8_xla_doc
|
#include <hlo_pass_pipeline.h>
Inherits HloPassInterface.
Public Member Functions | |
HloPassPipeline (const string &name) | |
template<typename T , typename... Args> | |
T & | AddPass (Args &&... args) |
Add a pass to the pipeline. It should be called with the arguments for the pass constructor: More... | |
template<typename T , typename... Args> | |
T & | AddInvariantChecker (Args &&... args) |
StatusOr< bool > | Run (HloModule *module) override |
Run the Hlo pipeline by invoking each class' Run method. More... | |
Pipeline of HLO passes.
|
inlineexplicit |
Only constructor of this class
|
inline |
Google docs:
Add an invariant-checking pass to the pipeline. It will be run before and after each HLO pass. The invariant checking pass must not mutate the graph (it is required to always return "false" from its Run() method).
|
inline |
Add a pass to the pipeline. It should be called with the arguments for the pass constructor:
pipeline.AddPass<FooPass>(constructor_arg1, constructor_arg2);
Returns a reference to the added pass.
|
override |
Run the Hlo pipeline by invoking each class' Run
method.
--xla_disable_hlo_passes
xla::anonymous_namespace{hlo_pass_pipeline.cc}::DumpModuleProto
to save module to file.xla::anonymous_namespace{hlo_pass_pipeline.cc}::DumpModuleGraph
xla::anonymous_namespace{hlo_pass_pipeline.cc}::DumpModuleProto
if dump proto per pass is setxla::anonymous_namespace{hlo_pass_pipeline.cc}::DumpModuleGraph