tf.cond()条件控制语句执行出错raise TypeError("true_fn must be callable.") TypeError: true_fn must be callable.
在写程序时,用tf.cond函数设置条件控制时出错raise TypeError("true_fn must be callable.")TypeError: true_fn must be callable.捣鼓了一下午加一晚上,最后找到错误地方为tf.cond的标准传入参数为tf.cond(pred,true_fn = None,false_fn = None,fn1=None...
原创
2018-08-25 10:49:17 ·
8588 阅读 ·
1 评论