| 20 | namespace tensorflow { |
| 21 | namespace embedding { |
| 22 | struct StorageConfig { |
| 23 | StorageConfig() : type(StorageType::DEFAULT), |
| 24 | path(""), |
| 25 | cache_strategy(CacheStrategy::LFU) { |
| 26 | size = {1<<30,1<<30,1<<30,1<<30}; |
| 27 | } |
| 28 | |
| 29 | StorageConfig(StorageType t, |
| 30 | const std::string& p, |
| 31 | const std::vector<int64>& s, |
| 32 | const EmbeddingConfig& ec, |
| 33 | const CacheStrategy cache_strategy_ = CacheStrategy::LFU) |
| 34 | : type(t), |
| 35 | path(p), |
| 36 | size(s), |
| 37 | embedding_config(ec), |
| 38 | cache_strategy(cache_strategy_) {} |
| 39 | StorageType type; |
| 40 | std::string path; |
| 41 | std::vector<int64> size; |
| 42 | CacheStrategy cache_strategy; |
| 43 | EmbeddingConfig embedding_config; |
| 44 | }; |
| 45 | } // namespace embedding |
| 46 | } // namespace tensorflow |
| 47 |
no outgoing calls