Open dataframing opened 5 years ago
Hi, I got the same question when keras update to 2.25. if there any solution for this problem except back keras version to 2.24?
the same question...
so is this can be solved? or just waiting for tensorflow addons?
for Keras 2.2.5
--> 516 mask2 = K.cast(K.concatenate([mask, K.zeros_like(mask[:, :1])], axis=1), 517 K.floatx())
try change to mask2 = K.concatenate([K.cast(mask, K.floatx()), K.zeros_like(mask[:, :1])], axis=1)
@FanYaning
I use keras 2.6.0
i not fined where this line
--> 516 mask2 = K.cast(K.concatenate([mask, K.zeros_like(mask[:, :1])], axis=1), 517 K.floatx())
which file is it in?
@kdja90
https://github.com/keras-team/keras-contrib/blob/master/keras_contrib/layers/crf.py in this file.
Hi all,
I noticed this morning that the recent release of Keras 2.2.5 breaks this library's implementation of the
CRF
layer.I ran the official CRF example here using
keras==2.2.4
and was able to successfully train both the CRF and bi-LSTM CRF. However, upgrading tokeras==2.2.5
led to the following issue:From the 2.2.5 release notes, I can only suspect that the point regarding the new
dtype
argument on the basekeras.Layer
could be introducing some sort of breaking change. This issue may also be a duplicate of #498 .cc: @lzfelix