Skip to content

Commit

Permalink
Merge pull request #58 from georgian-io/akash/bugfix
Browse files Browse the repository at this point in the history
Fix(multimodal_transformers/model/tabular_transformers.py): hidden_dr…
  • Loading branch information
akashsara authored Nov 14, 2023
2 parents 9ae2eab + c9e49b3 commit 02f4b62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multimodal_transformers/model/tabular_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def __init__(self, hf_model_config):
self.config.tabular_config = tabular_config.__dict__

tabular_config.text_feat_dim = hf_model_config.hidden_size
tabular_config.hidden_dropout_prob = hf_model_config.hidden_dropout_prob
tabular_config.hidden_dropout_prob = hf_model_config.dropout
self.tabular_combiner = TabularFeatCombiner(tabular_config)
self.num_labels = tabular_config.num_labels
combined_feat_dim = self.tabular_combiner.final_out_dim
Expand Down Expand Up @@ -604,7 +604,7 @@ def __init__(self, hf_model_config):
self.config.tabular_config = tabular_config.__dict__

tabular_config.text_feat_dim = hf_model_config.hidden_size
tabular_config.hidden_dropout_prob = hf_model_config.hidden_dropout_prob
tabular_config.dropout = hf_model_config.dropout
self.tabular_combiner = TabularFeatCombiner(tabular_config)
self.num_labels = tabular_config.num_labels
combined_feat_dim = self.tabular_combiner.final_out_dim
Expand Down

0 comments on commit 02f4b62

Please sign in to comment.