Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/zai-org/CogView
/ search
Function
search
test_lmdb.py:26–29 ·
view source on GitHub ↗
(env, sid)
Source
from the content-addressed store, hash-verified
24
25
import
pickle
26
def
search(env, sid):
27
txn = env.begin()
28
data = pickle.loads(txn.get(str(sid).encode(
'utf-8'
)))
29
return
data
30
31
import
argparse
32
import
torch
Callers
1
test_lmdb.py
File · 0.85
Calls
1
encode
Method · 0.45
Tested by
no test coverage detected