Skip to content
Merged

Vit bug #2070

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions keras_hub/src/models/vit/vit_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def build(self, input_shape):

def call(self, inputs):
x = self.dense_1(inputs)
x = self.dropout(x)
x = self.dense_2(x)
out = self.dropout(x)
return out
Expand Down Expand Up @@ -257,6 +258,7 @@ def build(self, input_shape):
hidden_dim=self.hidden_dim,
mlp_dim=self.mlp_dim,
use_bias=self.use_mlp_bias,
dropout_rate=self.dropout_rate,
name="mlp",
dtype=self.dtype_policy,
)
Expand Down
Loading