MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / merge

Method merge

SwissArmyTransformer/sat/mpu/layers.py:478–481  ·  view source on GitHub ↗
(self, new_weights, new_biases)

Source from the content-addressed store, hash-verified

476 return new_weights, new_biases
477
478 def merge(self, new_weights, new_biases):
479 self.weight.data.copy_(torch.cat(new_weights, 1))
480 if self.bias is not None and self.bias.numel() != 0:
481 self.bias.data.copy_(new_biases[0])

Callers 3

iter_mergeFunction · 0.45
forward_stepFunction · 0.45
process_config_to_argsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected