MCPcopy Index your code
hub / github.com/FedML-AI/FedML / clear

Method clear

python/fedml/utils/compression.py:51–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 self.zc = zero_condition
50
51 def clear(self):
52 self.residuals = {}
53 self.sparsities = []
54 self.zero_conditions = {}
55 self.values = {}
56 self.indexes = {}
57
58
59 def compress(self, tensor, name=None, sigma_scale=2.5, ratio=0.05):

Callers 15

process_data_fileMethod · 0.45
process_data_fileMethod · 0.45
process_data_fileMethod · 0.45
__del__Method · 0.45
log_llm_recordFunction · 0.45
log_metricFunction · 0.45
start_log_processorMethod · 0.45
init_logsMethod · 0.45
register_slaveMethod · 0.45
callback_start_trainMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected