oneflow
oneflow copied to clipboard
[WIP] ctc_loss support long input
https://github.com/Oneflow-Inc/oneflow/pull/8888 的另一种实现
背景:https://github.com/Oneflow-Inc/OneCloud/issues/104#issuecomment-1156122806 概述:oneflow的ctc_loss不接受int64的target输入而torch能 实现:
- 直接在functor层cast,而不是注册kernel
- 删除了max_target_lengths参数,在functor里面计算