Provide an interface for flushing the compilation cache in an implementation independent way.

PiperOrigin-RevId: 239533130
This commit is contained in:
A. Unique TensorFlower 2019-03-20 21:18:10 -07:00 committed by TensorFlower Gardener
parent 17ca6549ba
commit 395d32f274

View File

@ -374,6 +374,11 @@ class StreamExecutorInterface {
return absl::nullopt; return absl::nullopt;
} }
// Clears the compilation cache from volatile memory. Returns OK if no
// compilation cache exists or if clearing the compilation cache is
// unsupported. Caches in non-volatile storage are unaffected.
virtual port::Status FlushCompilationCache() { return port::Status::OK(); }
private: private:
SE_DISALLOW_COPY_AND_ASSIGN(StreamExecutorInterface); SE_DISALLOW_COPY_AND_ASSIGN(StreamExecutorInterface);
}; };