def loop_fn(i):
   logits_i = array_ops.gather(logits, i)
   return (nn.log_softmax(logits_i),
           nn.log_softmax(logits_i, axis=0),
           nn.log_softmax(logits_i, axis=-1))
 def loop_fn(i):
   logits_i = array_ops.gather(logits, i)
   return (nn.log_softmax(logits_i),
           nn.log_softmax(logits_i, axis=0),
           nn.log_softmax(logits_i, axis=-1))
Esempio n. 3
0
 def call(self, inputs):
     return nn.log_softmax(inputs, axis=self.axis)