soxan
soxan copied to clipboard
use_amp not define in CTCTrainer
`2 frames
AttributeError: 'CTCTrainer' object has no attribute 'use_amp'`
Either put as True or False ?
hi , thank u for your code and it very good i have a error in run code, can u help me
41 inputs = self._prepare_inputs(inputs)
42
-> 43 if self.use_amp: 44 with autocast(): 45 loss = self.compute_loss(model, inputs)
AttributeError: 'CTCTrainer' object has no attribute 'use_amp'
put
self.use_amp = True
inside the
class CTCTrainer(Trainer):