This repository has been archived by the owner on Nov 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 650
CRF Layer fails tensor dtype cast on Keras 2.2.5 #515
Comments
This was referenced Sep 12, 2019
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 try change to mask2 = K.concatenate([K.cast(mask, K.floatx()), K.zeros_like(mask[:, :1])], axis=1) |
@FanYaning |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: