Skip to content

Commit 882db8b

Browse files
committed
fix: correct return order in EncoderDecoderModel to match expected output
1 parent c34ff8d commit 882db8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_widedeep/models/tabular/self_supervised/encoder_decoder_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _forward_tabnet(self, X: Tensor) -> Tuple[Tensor, Tensor, Tensor]:
8282
x_embed_rec = self.decoder(steps_out)
8383
mask = torch.ones(x_embed.shape).to(X.device)
8484

85-
return x_embed_rec, x_embed, mask
85+
return x_embed, x_embed_rec, mask
8686

8787
def _build_decoder(self, encoder: ModelWithoutAttention) -> DecoderWithoutAttention:
8888
if isinstance(encoder, TabMlp):

0 commit comments

Comments
 (0)