From: A. Unique TensorFlower Date: Mon, 9 Apr 2018 21:12:05 +0000 (-0700) Subject: Doccumentation fix for LossSpec. X-Git-Tag: tflite-v0.1.7~16^2^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bf3476f025184aeca747bd4d799b20419a14c87;p=platform%2Fupstream%2Ftensorflow.git Doccumentation fix for LossSpec. PiperOrigin-RevId: 192185646 --- diff --git a/tensorflow/python/estimator/canned/head.py b/tensorflow/python/estimator/canned/head.py index bb033d3..189b81a 100644 --- a/tensorflow/python/estimator/canned/head.py +++ b/tensorflow/python/estimator/canned/head.py @@ -57,8 +57,8 @@ _PREDICT_SERVING_KEY = 'predict' # A LossSpec contains # * a scalar `Tensor` representing reduced weighted training loss -# * a scalar `Tensor` representing the unreduced unweighted loss -# * a scalar `Tensor` representing the example weights +# * a `Tensor` representing the unreduced unweighted loss +# * a `Tensor` representing the example weights # * possibly processed labels (e.g. vocabulary lookup, shape manipulation, etc) LossSpec = collections.namedtuple( 'LossSpec', ['training_loss', 'unreduced_loss', 'weights', @@ -163,8 +163,8 @@ class _Head(object): Returns: A LossSpec that contains * the scalar `Tensor` representing reduced weighted training loss - * the scalar `Tensor` representing the unreduced unweighted loss - * the scalar `Tensor` representing the example weights + * the `Tensor` representing the unreduced unweighted loss + * the `Tensor` representing the example weights * possibly processed labels (e.g. vocabulary lookup, shape manipulation, etc.)