Tensorflow 2.0: custom keras metric caused tf.function retracing warning

前端 未结 3 1619
借酒劲吻你
借酒劲吻你 2021-01-21 01:00

When I use the following custom metric (keras-style):

from sklearn.metrics import classification_report, f1_score
from ten         


        
3条回答
  •  孤街浪徒
    2021-01-21 01:51

    then using @tf.function(experimental_relax_shapes=True) will probably solve your problem

提交回复
热议问题