Welcome to the Simplilearn Community

Want to join the rest of our members? Sign up right away!

Sign Up

i am getting this error while running this code please help me

---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-17-712134946144> in <module>
----> 1import tflearn
2 from tflearn.layers.conv import conv_2d, max_pool_2d
3 from tflearn.layers.core import input_data, dropout, fully_connected
4 from tflearn.layers.estimator import regression
5

~\anaconda3\lib\site-packages\tflearn\__init__.py in <module>
2
3 # Config
----> 4from . import config
5 from .config import is_training, get_training_mode, init_graph
6

~\anaconda3\lib\site-packages\tflearn\config.py in <module>
3 import tensorflow as tf
4
----> 5from .variables import variable
6
7 # -------------------

~\anaconda3\lib\site-packages\tflearn\variables.py in <module>
5 import tflearn
6
----> 7from tensorflow.contrib.framework.python.ops import add_arg_scope as contrib_add_arg_scope
8 from tensorflow.python.framework import ops
9 from tensorflow.python.ops import variable_scope

~\anaconda3\lib\site-packages\tensorflow\contrib\__init__.py in <module>
35 from tensorflow.contrib import copy_graph
36 from tensorflow.contrib import crf
---> 37from tensorflow.contrib import cudnn_rnn
38 from tensorflow.contrib import data
39 from tensorflow.contrib import deprecated

~\anaconda3\lib\site-packages\tensorflow\contrib\cudnn_rnn\__init__.py in <module>
36
37 # pylint: disable=unused-import,wildcard-import
---> 38from tensorflow.contrib.cudnn_rnn.python.layers import *
39 # pylint: enable=unused-import,wildcard-import
40

~\anaconda3\lib\site-packages\tensorflow\contrib\cudnn_rnn\python\layers\__init__.py in <module>
21
22 # pylint: disable=unused-import,wildcard-import
---> 23from tensorflow.contrib.cudnn_rnn.python.layers.cudnn_rnn import *
24 # pylint: enable=unused-import,wildcard-import
25

~\anaconda3\lib\site-packages\tensorflow\contrib\cudnn_rnn\python\layers\cudnn_rnn.py in <module>
18 from __future__ import print_function
19
---> 20from tensorflow.contrib.cudnn_rnn.python.ops import cudnn_rnn_ops
21 from tensorflow.python.framework import dtypes
22 from tensorflow.python.framework import ops

~\anaconda3\lib\site-packages\tensorflow\contrib\cudnn_rnn\python\ops\cudnn_rnn_ops.py in <module>
20 import os
21 from tensorflow.contrib.checkpoint.python import split_dependency
---> 22from tensorflow.contrib.rnn.python.ops import lstm_ops
23 from tensorflow.python.framework import dtypes
24 from tensorflow.python.framework import ops

~\anaconda3\lib\site-packages\tensorflow\contrib\rnn\python\ops\lstm_ops.py in <module>
22 import six
23
---> 24from tensorflow.contrib.rnn.ops import gen_lstm_ops
25 from tensorflow.contrib.util import loader
26 from tensorflow.python.framework import dtypes

~\anaconda3\lib\site-packages\tensorflow\contrib\rnn\ops\gen_lstm_ops.py in <module>
194 return _result
195
--> 196_ops.RegisterShape("BlockLSTM")(None)
197
198

AttributeError: module 'tensorflow.python.framework.ops' has no attribute 'RegisterShape'
 
Top