tf_1.8_xla_doc
|
#include <cpu_copy_insertion.h>
Inherits HloPassInterface.
Public Member Functions | |
StatusOr< bool > | Run (HloModule *module) override |
Entry point of xla::CpuCopyInsertion More... | |
Google docs:
Besides the modifications made by the generic xla::CopyInsertion, this CPU-specific copy insertion pass also adds copies to values live out of computations satisfying certain conditions (defined by constant or parameter, etc). This is necessary because of deficiencies of buffer assignment. Specifically, buffer assignment is computation-scoped and does not recognized aliasing between arguments and outputs of computations.
TODO(b/62548313): Remove this when buffer assignment is smarter (module-scoped).
|
override |
Entry point of xla::CpuCopyInsertion
xla::CopyInsertion()
)xla::CopyInsertion::AddCopiesForBufferAssignment()
) due to deficiencies in buffer assignment