ccloud0525 commited on
Commit ·
d3b2f33
1
Parent(s): e05efc0
feat: 'README'
Browse files731 unmodified lines732733734735736737735736737739738739740731 unmodified lines # decoding x_dec = self.decoder(x_enc, x_rec)
proj = nn.Linear(self.d_model, inference_patch_len, bias=False) proj.weight.data = resample(old=self.proj.weight.data.T, new_patch_len=inference_patch_len).T resampled_weight = resample(old=self.proj.weight.data.T, new_patch_len=inference_patch_len).T dec_out = F.linear(x_dec, resampled_weight)
dec_out = proj(x_dec) point_forecasts = rearrange(dec_out, 'b n p -> b (n p)') return point_forecasts[:, :pred_len]
modeling_flame.py+2-4