diff options
author | benoitjacob <benoitjacob@google.com> | 2020-04-24 23:21:49 +0300 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2020-04-29 21:38:28 +0300 |
commit | c6a65efcc42cbed6db9c2c10194a5b0b7600be42 (patch) | |
tree | 3911b49f1b86c3920109d075955ca8ee2c3f9217 /ruy/context.h | |
parent | 0ad580f6721912047c3612f4b202f3aabf8bdea9 (diff) |
Use the new ruy API for caching constant matrices.test_308313346
PiperOrigin-RevId: 308313346
Diffstat (limited to 'ruy/context.h')
-rw-r--r-- | ruy/context.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ruy/context.h b/ruy/context.h index b283108..b41ab54 100644 --- a/ruy/context.h +++ b/ruy/context.h @@ -28,7 +28,7 @@ class ThreadPool; class TracingContext; enum class Path : std::uint8_t; enum class Tuning; -enum class CachePolicy; +enum class CachePolicy : std::uint8_t; // A Context holds runtime information used by Ruy. It holds runtime resources // such as the workers thread pool and the allocator (which holds buffers for @@ -49,8 +49,8 @@ class Context final { void set_max_num_threads(int value); const TracingContext& tracing() const; TracingContext* mutable_tracing(); - CachePolicy cache_policy() const; - void set_cache_policy(CachePolicy value); + void set_cache_policy(CachePolicy) { /* do nothing, legacy */ + } void ClearPrepackedCache(); |