Update modeling_caption_bert.py
Browse files- modeling_caption_bert.py +2 -1
modeling_caption_bert.py
CHANGED
|
@@ -82,7 +82,8 @@ class CaptionBertModel(PreTrainedModel):
|
|
| 82 |
norm_first=True,
|
| 83 |
)
|
| 84 |
self.encoder = nn.TransformerEncoder(
|
| 85 |
-
encoder_layer, num_layers=config.num_hidden_layers
|
|
|
|
| 86 |
|
| 87 |
# Output projection to consensus space
|
| 88 |
self.output_proj = nn.Sequential(
|
|
|
|
| 82 |
norm_first=True,
|
| 83 |
)
|
| 84 |
self.encoder = nn.TransformerEncoder(
|
| 85 |
+
encoder_layer, num_layers=config.num_hidden_layers,
|
| 86 |
+
enable_nested_tensor=False)
|
| 87 |
|
| 88 |
# Output projection to consensus space
|
| 89 |
self.output_proj = nn.Sequential(
|