MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / StorageConfig

Class StorageConfig

tensorflow/core/framework/embedding/storage_config.h:22–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace tensorflow {
21namespace embedding {
22struct 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

Callers 5

ComputeMethod · 0.85
ComputeAsyncMethod · 0.85
CreateEmbeddingVarFunction · 0.85
RunMethod · 0.85
RunMethod · 0.85

Calls

no outgoing calls

Tested by 3

CreateEmbeddingVarFunction · 0.68
RunMethod · 0.68
RunMethod · 0.68