MCPcopy Index your code
hub / github.com/tensorlayer/TensorLayer / _serialization

Method _serialization

tensorlayer/db.py:99–103  ·  view source on GitHub ↗

Serialize data.

(ps)

Source from the content-addressed store, hash-verified

97
98 @staticmethod
99 def _serialization(ps):
100 """Serialize data."""
101 return pickle.dumps(ps, protocol=pickle.HIGHEST_PROTOCOL) # protocol=2)
102 # with open('_temp.pkl', 'wb') as file:
103 # return pickle.dump(ps, file, protocol=pickle.HIGHEST_PROTOCOL)
104
105 @staticmethod
106 def _deserialization(ps):

Callers 2

save_modelMethod · 0.95
save_datasetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected