Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaddlePaddle/Paddle
/ CustomCache
Class
CustomCache
test/sot/test_sot_cache.py:20–25 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
18
19
20
class
CustomCache(Cache):
21
def
key_fn(self, x):
22
return
x
23
24
def
value_fn(self, x):
25
return
x
26
27
28
class
TestCache(unittest.TestCase):
Callers
3
test_basic
Method · 0.85
test_int_collision
Method · 0.85
test_bool_and_int_collision
Method · 0.85
Calls
no outgoing calls
Tested by
3
test_basic
Method · 0.68
test_int_collision
Method · 0.68
test_bool_and_int_collision
Method · 0.68