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