Open simeetnayan81 opened 9 months ago
Hi, As of now ctc_batch_cost
is not available in Keras 3.
You can see what we did for https://keras.io/examples/vision/captcha_ocr/, and probably do the same for now.
Migrate the example to be tf only, and just copy the ctc_batch_cost
code directly into the example itself.
Issue Type
Bug
Source
source
Keras Version
Keras 3
Custom Code
Yes
OS Platform and Distribution
No response
Python version
No response
GPU model and memory
No response
Current Behavior?
I was trying to migrate "handwriting_recognition" example to keras 3. The example requires ctc endpoint layer for ctc batch loss calcultaion.
AttributeError: module 'keras.backend' has no attribute 'ctc_batch_cost'
This is the error I recieved.
Code for ctc layer class. This is same as what was present in original example.
Standalone code to reproduce the issue or tutorial link
Relevant log output