TypeError: Tensors in list passed to 'values' of 'ConcatV2' Op have types [bool, float32] that don't all match.
zkailinzhang opened this issue · 1 comments
zkailinzhang commented
when run this line:
model.add(crf)
zkailinzhang commented
,直接更改源码,
根据报错信息找到crf文件
crf.py
添加
import tensorflow as tf
同时将
mask2 = K.cast(K.concatenate([mask, K.zeros_like(mask[:, :1])], axis=1),
K.floatx())
改为
mask2 = K.cast(K.concatenate([tf.to_float(mask), K.zeros_like(mask[:, :1])], axis=1),