Exemple #1
0
 def forward(self, input, train=True):
     h = input
     h = L.dropout(h, rate=self.drate, train=train)
     h = self.l1(h)
     h = L.relu(h)
     # h = L.dropout(h,rate=self.drate,train=train)
     h = self.l2(h)
     return L.softmax(h)
Exemple #2
0
 def forward(self,input,train=True):
     h = input
     h = L.dropout(h,rate=self.drate,train=train)
     h = self.l1(h)
     h = L.relu(h)
     #h = L.dropout(h,rate=self.drate,train=train)
     h = self.l2(h)
     return L.softmax(h)
Exemple #3
0
 def forward(self,input,train=True):
     h = input
     h = self.l1(h)
     h = L.relu(h)
     h = self.l2(h)
     return L.softmax(h)
Exemple #4
0
 def forward(self, inputs, train=True):
     h = inputs
     h = self.l1(h)
     h = L.relu(h)
     h = self.l2(h)
     return L.softmax(h)