MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / dumps

Method dumps

tensorpack/utils/serialize.py:23–30  ·  view source on GitHub ↗

Serialize an object. Returns: Implementation-dependent bytes-like object.

(obj)

Source from the content-addressed store, hash-verified

21
22 @staticmethod
23 def dumps(obj):
24 """
25 Serialize an object.
26
27 Returns:
28 Implementation-dependent bytes-like object.
29 """
30 return msgpack.dumps(obj, use_bin_type=True)
31
32 @staticmethod
33 def loads(buf):

Callers

nothing calls this directly

Calls 1

dumpsMethod · 0.45

Tested by

no test coverage detected