Пример #1
0
 def f(self, x, y):
     log.warn('Using default loss cross entropy')
     return tf.nn.softmax_cross_entropy_with_logits_v2(logits=x,
                                                       labels=y)
Пример #2
0
 def f(logits, y):
     log.warn('No testing metrics set')
     return tf.constant(0)
Пример #3
0
 def optimize(loss):
     log.warn('No optimizer set')
Пример #4
0
 def f(logits, ys):
     log.warn('No training metrics set')
     return logits, ys