damn this sucks
This commit is contained in:
parent
0316063e2d
commit
561a6b8ff7
|
@ -59,7 +59,7 @@ class GaussianDiffusionInjector(Injector):
|
|||
def extra_metrics(self):
|
||||
if hasattr(self, 'schedule_sampler') and isinstance(self.schedule_sampler, LossSecondMomentResampler):
|
||||
return {
|
||||
'sampler_warmed_up': self.schedule_sampler._warmed_up()
|
||||
'sampler_warmed_up': torch.tensor(self.schedule_sampler._warmed_up()).float()
|
||||
}
|
||||
return {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user