数据结构c++第一章算法设计题

C++第一天 1.0

  返回  

pycharm 不能debug tensorflow keras的call函数

2021/8/21 20:50:33 浏览:

tensorflow keras call函数不能debug,增加@tf.autograph.experimental.do_not_convert

class MyLoss(tf.keras.losses.Loss):
    def __init__(self):
        super().__init__()

    @tf.autograph.experimental.do_not_convert   # breakpoint now recognized with this decorator
    def call(self, y_true, y_pred):
        mae = tf.abs(y_true - y_pred)     # set breakpoint here, debugger stops for tf2.2 only
                                          # breakpoint recognized in tf2.3 with use of @tf.autograph.experimental.do_no_convert decorator
        return mae

联系我们

如果您对我们的服务有兴趣,请及时和我们联系!

服务热线:18288888888
座机:18288888888
传真:
邮箱:888888@qq.com
地址:郑州市文化路红专路93号