LukasZahradnik / deep-db-learning

A modular message-passing scheme reflecting the relational model for end-to-end deep learning from databases
https://lukaszahradnik.github.io/deep-db-learning/
6 stars 2 forks source link

RuntimeError: stack expects a non-empty TensorList #18

Closed neumannjan closed 1 year ago

neumannjan commented 1 year ago

https://github.com/LukasZahradnik/deep-db-learning/blob/75090ca2ac9a262d4362ebdf8ee0fd7b875f2896/db_transformer/ndata/dataset.py#L227

This line errors out when table_tensor_data is empty. I guess this occurs when the foreign key reference leads to zero entries.

LukasZahradnik commented 1 year ago

It should be fixed now. The dictionary of table data contained some empty tables that shouldn't be there (the depth was too low to include them), but defaultdict was creating empty sets for them (as it should).