MCPcopy Index your code
hub / github.com/CompVis/diff2flow / get_buffers_iter

Method get_buffers_iter

diff2flow/ema.py:147–151  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

145 yield name, param
146
147 def get_buffers_iter(self, model):
148 for name, buffer in model.named_buffers():
149 if name not in self.buffer_names:
150 continue
151 yield name, buffer
152
153 def copy_params_from_model_to_ema(self):
154 copy = self.inplace_copy

Calls

no outgoing calls

Tested by

no test coverage detected