()
return cb.Serial(core.LogSoftmax(), _CrossEntropy(), _WeightedMean(),
                   name='CrossEntropyLossWithLogSoftmax',
                   sublayers_to_print=[])
Mean prediction-target cross-entropy for multiclass classification.
Mean prediction-target cross-entropy for multiclass classification.
Mean prediction - target cross - entropy for multiclass classification .
def CrossEntropyLossWithLogSoftmax():
  """Mean prediction-target cross-entropy for multiclass classification."""
  return cb.Serial(core.LogSoftmax(), _CrossEntropy(), _WeightedMean(),
                   name='CrossEntropyLossWithLogSoftmax',
                   sublayers_to_print=[])
def CrossEntropyLossWithLogSoftmax ( ) : return cb . Serial ( core . LogSoftmax ( ) , _CrossEntropy ( ) , _WeightedMean ( ) , name = 'CrossEntropyLossWithLogSoftmax' , sublayers_to_print = [ ] )