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

Excuse me, my tensorflow is version 1.5, why can't it run? #3

Open
hj5717 opened this issue Apr 20, 2023 · 0 comments
Open

Excuse me, my tensorflow is version 1.5, why can't it run? #3

hj5717 opened this issue Apr 20, 2023 · 0 comments

Comments

@hj5717
Copy link

hj5717 commented Apr 20, 2023

WARNING:tensorflow:From C:/Users/38461/Desktop/Code/Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master/Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master/Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master/train.py:56: The name tf.reset_default_graph is deprecated. Please use tf.compat.v1.reset_default_graph instead.

WARNING:tensorflow:From C:\Users\38461\Desktop\Code\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\drqn.py:8: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.

WARNING:tensorflow:From C:\Users\38461\Desktop\Code\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\drqn.py:9: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.

WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:

Traceback (most recent call last):
File "C:/Users/38461/Desktop/Code/Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master/Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master/Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master/train.py", line 62, in
mainQN = QNetwork(name='main',hidden_size=hidden_size,learning_rate=learning_rate,step_size=step_size,state_size=state_size,action_size=action_size)
File "C:\Users\38461\Desktop\Code\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\drqn.py", line 17, in init
self.lstm = tf.contrib.rnn.BasicLSTMCell(hidden_size)
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_core\python\util\lazy_loader.py", line 63, in getattr
return getattr(module, item)
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_init_.py", line 50, in getattr
module = self.load()
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_init
.py", line 44, in _load
module = importlib.import_module(self.name)
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in find_and_load
File "", line 955, in find_and_load_unlocked
File "", line 665, in load_unlocked
File "", line 678, in exec_module
File "", line 219, in call_with_frames_removed
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_core\contrib_init
.py", line 39, in
from tensorflow.contrib import compiler
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_core\contrib\compiler_init
.py", line 21, in
from tensorflow.contrib.compiler import jit
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_core\contrib\compiler_init.py", line 22, in
from tensorflow.contrib.compiler import xla
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_core\contrib\compiler\xla.py", line 22, in
from tensorflow.python.estimator import model_fn as model_fn_lib
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_core\python\estimator\model_fn.py", line 26, in
from tensorflow_estimator.python.estimator import model_fn
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_estimator_init.py", line 10, in
from tensorflow_estimator.api.v1 import estimator
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_estimator_api\v1\estimator_init
.py", line 10, in
from tensorflow_estimator.api.v1.estimator import experimental
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_estimator_api\v1\estimator\experimental_init
.py", line 10, in
from tensorflow_estimator.python.estimator.canned.dnn import dnn_logit_fn_builder
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_estimator\python\estimator\canned\dnn.py", line 27, in
from tensorflow_estimator.python.estimator import estimator
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 36, in
from tensorflow.python.profiler import trace
ImportError: cannot import name 'trace'

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

1 participant