(self)
| 83 | self.data = self.to('cpu') |
| 84 | |
| 85 | def __getstate__(self): |
| 86 | state = self.__dict__ |
| 87 | state["data"] = self.data |
| 88 | state["quantization_config"] = self.quantization_config |
| 89 | state["requires_grad"] = self.requires_grad |
| 90 | return state |
| 91 | |
| 92 | def __setstate__(self, state): |
| 93 | self.quantizer = state["quantizer"] |
no outgoing calls
no test coverage detected