Returns a dictionary containing the current state of the tensor.
(self)
| 252 | return self.dequantize().to(*args, **kwargs) |
| 253 | |
| 254 | def state_dict(self): |
| 255 | """Returns a dictionary containing the current state of the tensor.""" |
| 256 | return { |
| 257 | 'quantized': self.quantized, |
| 258 | 'scale': self.scale, |
| 259 | 'orig_dtype': self.orig_dtype |
| 260 | } |
| 261 | |
| 262 | def _load_from_state_dict(self, state_dict): |
| 263 | """Loads the tensor state from a state dictionary.""" |
nothing calls this directly
no outgoing calls
no test coverage detected