Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'tensorflow_core._api.v2.nn' has no attribute 'rnn_cell' #26

Open
VallesMarinerisExplorer opened this issue Aug 9, 2020 · 1 comment

Comments

@VallesMarinerisExplorer
Copy link

Hi all,

I am having difficulty running the predict script. I think it is an error stemming from which distribution you use for tensorflow. I tried upgrading to the most recent version of tensorflow (2.3.0) but got this error still. Here is the issue again in Tensorflow. I am not sure if it is a matter of calling a separate TF function for better im2latex implementation or if it is a problem that must be solved on the tensorflow side of things. Or maybe im2latex needs to be updated to work with the latest version of tensorflow. Just curious! Seems like a cool project!

I am using Windows 10 and PyCharm 2018.2

Tensorflow issue:
tensorflow/nmt#466

Traceback (most recent call last):
File "C:/Users/Owner/AppData/Local/Programs/Python/Python37/Lib/site-packages/im2latex_tensorflow/im2latex_tensorflow_master/predict.py", line 4, in
import tflib.ops
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37\Lib\site-packages\im2latex_tensorflow\im2latex_tensorflow_master\tflib\ops.py", line 251, in
class GRUCell(tf.nn.rnn_cell.RNNCell):
AttributeError: module 'tensorflow_core._api.v2.nn' has no attribute 'rnn_cell'

@yang-stressfree
Copy link

Consider this is a 3 years ago project, so maybe try tensorflow 1.X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants