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

Method dumps

tensorpack/utils/serialize.py:80–85  ·  view source on GitHub ↗

Returns: bytes

(obj)

Source from the content-addressed store, hash-verified

78class PickleSerializer(object):
79 @staticmethod
80 def dumps(obj):
81 """
82 Returns:
83 bytes
84 """
85 return pickle.dumps(obj, protocol=-1)
86
87 @staticmethod
88 def loads(buf):

Callers 4

dumpsMethod · 0.45
dumps_bytesMethod · 0.45
packMethod · 0.45
compute_mean_stdFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected