<filename>trend/src/zutils/tensorflow/tf_loss.py<gh_stars>1-10
# @Time   : 2018-9-10
# @Author : zxh
import tensorlayer as tl
class TFLoss:
    @staticmethod
    def cross_entropy(logits, labels):
         return tl.cost.cross_entropy(logits, labels, name='xentropy')








<filename>trend/src/zutils/tensorflow/tf_loss.py<gh_stars>1-10
# @Time   : 2018-9-10
# @Author : zxh
import tensorlayer as tl
class TFLoss:
    @staticmethod
    def cross_entropy(logits, labels):
         return tl.cost.cross_entropy(logits, labels, name='xentropy')








# @Time   : 2018-9-10 # @Author : zxh