mirror of
https://github.com/wassname/Volt.git
synced 2026-09-09 11:16:09 +08:00
misc
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -51,6 +51,7 @@ class EWMAMean(Mean):
|
||||
elif torch.equal(x.squeeze(), self.train_x.squeeze()):
|
||||
return ewma[..., :-1].type(torch.FloatTensor).to(self.train_x.device)
|
||||
else:
|
||||
return ewma[..., -1:].repeat(len(x)).type(torch.FloatTensor).to(self.train_x.device)
|
||||
return ewma.type(torch.FloatTensor).to(self.train_x.device)
|
||||
|
||||
|
||||
@@ -132,4 +133,4 @@ class MeanRevertingEMAMean(Mean):
|
||||
elif torch.equal(x.squeeze(), self.train_x.squeeze()):
|
||||
return ema[..., :-1].type(torch.FloatTensor).to(self.train_x.device)
|
||||
else:
|
||||
return ema.type(torch.FloatTensor).to(self.train_x.device)
|
||||
return ema.type(torch.FloatTensor).to(self.train_x.device)
|
||||
|
||||
Reference in New Issue
Block a user