MCPcopy Create free account
hub / github.com/MotrixLab/MotionDiffuse / update

Method update

text2motion/trainers/ddpm_trainer.py:136–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 return loss_logs
135
136 def update(self):
137 self.zero_grad([self.opt_encoder])
138 loss_logs = self.backward_G()
139 self.loss_mot_rec.backward()
140 self.clip_norm([self.encoder])
141 self.step([self.opt_encoder])
142
143 return loss_logs
144
145 def to(self, device):
146 if self.opt.is_train:

Callers 1

trainMethod · 0.95

Calls 4

zero_gradMethod · 0.95
backward_GMethod · 0.95
clip_normMethod · 0.95
stepMethod · 0.95

Tested by

no test coverage detected