I have code below. I put the model in eval mode then also it print dropout layer when model is print. Is it common? How could i know it is deactivated once i change to evaluation mode.

DROP OUT CHECK
import torch
import torch.nn as nn
class Test(nn.Module):
def init(self, pool_size=(4, 4)):
super(Test, self).init()
self.layer = nn.Linear(1, 1, bias=False)
self.dropout = nn.Dropout()
def forward(self, x):
    out = self.dropout(self.layer(x))
    return out

model=Test();
model.train()
print("train model is : ",model)
model.eval()
print("eval model is : ",model)