Fix typos of dropout types

This commit is contained in:
AlessandroMiola committed 2023-01-16 20:06:06 +01:00
1 parent d76c767f1a
commit bf6f266417
1 file changed
+7 -7
+7 -7
View File
@@ -2615,7 +2615,7 @@
" def __init__(self,\n",
" embedding_dim:int=768, # Hidden size D from Table 1 for ViT-Base\n",
" num_heads:int=12, # Heads from Table 1 for ViT-Base\n",
" attn_dropout:int=0): # doesn't look like the paper uses any dropout in MSABlocks\n",
" attn_dropout:float=0): # doesn't look like the paper uses any dropout in MSABlocks\n",
" super().__init__()\n",
" \n",
" # 3. Create the Norm layer (LN)\n",
@@ -2797,7 +2797,7 @@
" def __init__(self,\n",
" embedding_dim:int=768, # Hidden Size D from Table 1 for ViT-Base\n",
" mlp_size:int=3072, # MLP size from Table 1 for ViT-Base\n",
" dropout:int=0.1): # Dropout from Table 3 for ViT-Base\n",
" dropout:float=0.1): # Dropout from Table 3 for ViT-Base\n",
" super().__init__()\n",
" \n",
" # 3. Create the Norm layer (LN)\n",
@@ -2951,8 +2951,8 @@
" embedding_dim:int=768, # Hidden size D from Table 1 for ViT-Base\n",
" num_heads:int=12, # Heads from Table 1 for ViT-Base\n",
" mlp_size:int=3072, # MLP size from Table 1 for ViT-Base\n",
" mlp_dropout:int=0.1, # Amount of dropout for dense layers from Table 3 for ViT-Base\n",
" attn_dropout:int=0): # Amount of dropout for attention layers\n",
" mlp_dropout:float=0.1, # Amount of dropout for dense layers from Table 3 for ViT-Base\n",
" attn_dropout:float=0): # Amount of dropout for attention layers\n",
" super().__init__()\n",
"\n",
" # 3. Create MSA block (equation 2)\n",
@@ -3221,9 +3221,9 @@
" embedding_dim:int=768, # Hidden size D from Table 1 for ViT-Base\n",
" mlp_size:int=3072, # MLP size from Table 1 for ViT-Base\n",
" num_heads:int=12, # Heads from Table 1 for ViT-Base\n",
" attn_dropout:int=0, # Dropout for attention projection\n",
" mlp_dropout:int=0.1, # Dropout for dense/MLP layers \n",
" embedding_dropout:int=0.1, # Dropout for patch and position embeddings\n",
" attn_dropout:float=0, # Dropout for attention projection\n",
" mlp_dropout:float=0.1, # Dropout for dense/MLP layers \n",
" embedding_dropout:float=0.1, # Dropout for patch and position embeddings\n",
" num_classes:int=1000): # Default for ImageNet but can customize this\n",
" super().__init__() # don't forget the super().__init__()!\n",
" \n",