use target dim to reshape lags

This commit is contained in:
Dr. Kashif Rasul
2020-01-29 15:00:46 +01:00
parent 50893b3f13
commit 2b51a2ad25
@@ -549,7 +549,7 @@ class TransformerTempFlowPredictionNetwork(TransformerTempFlowTrainingNetwork):
lags_scaled = lags / repeated_scale.unsqueeze(-1)
input_lags = lags_scaled.reshape(
shape=(-1, 1, prod(self.target_shape) * len(self.lags_seq))
(-1, 1, len(self.lags_seq) * self.target_dim)
)
# (batch_size, target_dim, embed_dim)