warp-transducer icon indicating copy to clipboard operation
warp-transducer copied to clipboard

error in tf2.1

Open nichongjia-2007 opened this issue 5 years ago • 4 comments

in tensorflow_binding/warprnnt_tensorflow/init.py, there is a line @ops.RegisterShape("WarpRNNT")

when using tf 2.1.0, there is an error

'tensorflow.python.framework.ops' has no attribute 'RegisterShape'

nichongjia-2007 avatar Jan 17 '20 08:01 nichongjia-2007

I got the same error with tf2.1

abhigoyal2210 avatar Apr 17 '20 13:04 abhigoyal2210

Try to remove python 'RegisterShape', then add a SetShapeFn after warprnnt_op.cc:13.

HawkAaron avatar Apr 28 '20 14:04 HawkAaron

Hi, I am getting the same issue. Did this work? Can anyone explain what changes are need to be done?

bhaswa avatar Jul 10 '20 09:07 bhaswa

Hello bhaswa! I was having the same issue and i found this solution: https://github.com/noahchalifour/warp-transducer/commit/45a4a10ae9af14b7d9b25bd558be95f43ee1ba9a

joaoalvarenga avatar Oct 10 '20 14:10 joaoalvarenga