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

Method to

text2motion/trainers/ddpm_trainer.py:145–148  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

143 return loss_logs
144
145 def to(self, device):
146 if self.opt.is_train:
147 self.mse_criterion.to(device)
148 self.encoder = self.encoder.to(device)
149
150 def train_mode(self):
151 self.encoder.train()

Callers 15

__init__Method · 0.95
trainMethod · 0.95
visualization.pyFile · 0.80
qpowFunction · 0.80
recover_root_rot_posFunction · 0.80
__init__Method · 0.80
set_offsetMethod · 0.80
forward_kinematicsMethod · 0.80
forwardMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected