function sparseCategoricalCrossentropy(target, output, fromLogits) {
	  if (fromLogits === void 0) {
	    fromLogits = false;
	  }

	  return tidy(function () {
	    var flatTarget = floor$a(flatten$1(target)).toInt();
	    output = clipByValue(output, epsilon(), 1 - epsilon());
	    var outputShape = output.shape;
	    var oneHotTarget = oneHot(flatTarget, outputShape[outputShape.length - 1]).reshape(outputShape);
	    return categoricalCrossentropy(oneHotTarget, output, fromLogits);
	  });
	}
Categorical crossentropy with integer targets.

@param target An integer tensor.
@param output A tensor resulting from a softmax (unless `fromLogits` is
 `true`, in which case `output` is expected to be the logits).
@param fromLogits Boolean, whether `output` is the result of a softmax, or is
  a tensor of logits.