Open luke-carlson opened 3 weeks ago
trainer.py's train_batch function has a number of arguments, it would be nice if each of these had an associated type hint, eg bool, int, EmaModel, etc.
trainer.py
train_batch
bool
int
EmaModel
def train_batch( model, sample, optimizer, scheduler, logger, args, grad_scaler=None, accumulate_gradient=False, num_grad_accumulations=1, ema_model=None, loss_factor=1,
I can work on this!
https://github.com/apple/ml-mdm/pull/33
trainer.py
'strain_batch
function has a number of arguments, it would be nice if each of these had an associated type hint, egbool
,int
,EmaModel
, etc.