Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ test_vector_serialization
Function
test_vector_serialization
tools/python/test/test_vector.py:94–98 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
92
93
94
def
test_vector_serialization():
95
v = vector([1, 2, 3])
96
ser = pickle.dumps(v, 2)
97
deser = pickle.loads(ser)
98
assert str(v) == str(deser)
99
100
101
def
generate_test_vectors():
Callers
nothing calls this directly
Calls
2
vector
Class · 0.90
str
Class · 0.85
Tested by
no test coverage detected