Allow access to the module BufferLiveness applies to.

PiperOrigin-RevId: 162690202
This commit is contained in:
A. Unique TensorFlower 2017-07-20 17:43:18 -07:00 committed by TensorFlower Gardener
parent 41ae3a8c0f
commit 9cf6fe1ad3

View File

@ -67,6 +67,8 @@ class BufferLiveness {
// Returns the underlying hlo ordering used for this liveness analysis.
const HloOrdering& hlo_ordering() const { return *hlo_ordering_; }
const HloModule& module() const { return *module_; }
string ToString() const;
static Colorer DefaultColorer() {