MCPcopy
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
25import pickle
26def search(env, sid):
27 txn = env.begin()
28 data = pickle.loads(txn.get(str(sid).encode('utf-8')))
29 return data
30
31import argparse
32import torch

Callers 1

test_lmdb.pyFile · 0.85

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected