Go to the documentation of this file.00001 import chainer
00002 import chainer.functions as F
00003 import chainer.links as L
00004
00005
00006 class EncoderFC3Dropout(chainer.Chain):
00007
00008 def __init__(self):
00009 super(EncoderFC3Dropout, self).__init__()
00010 with self.init_scope():
00011 self.fc1 = L.Linear(2133, 1024)
00012 self.fc2 = L.Linear(1024, 1024)
00013 self.fc3 = L.Linear(1024, 85)
00014
00015 def __call__(self, x):
00016 h = self.fc1(x)
00017 h = F.relu(h)
00018 h = F.dropout(h)
00019 h = self.fc2(h)
00020 h = F.relu(h)
00021 h = F.dropout(h)
00022 h = self.fc3(h)
00023 return h