MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / __setstate__

Method __setstate__

deepspeed/linear/quantization.py:92–96  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

90 return state
91
92 def __setstate__(self, state):
93 self.quantizer = state["quantizer"]
94 self.quantization_config = state["quantization_config"]
95 self.data = state["data"]
96 self.requires_grad = state["requires_grad"]
97
98 def __deepcopy__(self, memo):
99 new_instance = type(self).__new__(type(self))

Callers 2

__deepcopy__Method · 0.45
__copy__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected