dronie / d2d_a2c Goto Github PK
View Code? Open in Web Editor NEWChannel Selection and Power Control for D2D Communication via Online Reinforcement Learning
Channel Selection and Power Control for D2D Communication via Online Reinforcement Learning
It seems that the last version of tensorflow doesn't work. Then what is the requirements of this repo, including tensorflow, trfl, and tensorflow_probability?
cuposx.json
cuposy.json
d2dposx.json
d2dposy.json
could you share these file?
tks!
self.Critic_return, self.advantage = trfl.sequence_advantage_critic_loss(self.baseline_,
self.reward_, self.discount_, self.bootstrap_, lambda_=lambda_,
baseline_cost=baseline_cost)
AttributeError: module 'trfl' has no attribute 'sequence_advantage_critic_loss'
This problem has been bothering me, can you help me solve this problem?
D2D_env_discrete.py
119 g_iB=self.PL_kCellUE_PLCellUE_ffadingCellUE_sfading
135 G_ij=self.PL_kd_ij**-self.PLfactorG_ij_ffadingG_ij_sfading10**-2 #### it's a matrix
142 g_jB=self.PL_kd_jB**-self.PLfactorg_jB_ffadingg_jB_sfading*10**-3
I have a question why 10**-2 is multiplied by 10**-2 in line 135 of the file and 10**-3 is multiplied in 142.
i cannot find the source code that constructs the FSMC wireless channels, could you please point out for me? thanks.
I have modified the code based on version 2.11 of TensorFlow, but this error will be reported. Could you please help me solve it? Thank you very much!
Traceback (most recent call last):
File "D:\Anaconda\envs\py310\lib\site-packages\tensorflow\python\client\session.py", line 1378, in _do_call
return fn(*args)
File "D:\Anaconda\envs\py310\lib\site-packages\tensorflow\python\client\session.py", line 1361, in _run_fn
return self._call_tf_sessionrun(options, feed_dict, fetch_list,
File "D:\Anaconda\envs\py310\lib\site-packages\tensorflow\python\client\session.py", line 1454, in _call_tf_sessionrun
return tf_session.TF_SessionRun_wrapper(self._session, options, feed_dict,
tensorflow.python.framework.errors_impl.InvalidArgumentError: Trying to access element 1 in a list with 1 elements.
[[{{function_node GeneralizedQLambda_target_multistep_forward_view_op_scan_discounted_sum_scan_while_body_160}}{{node TensorArrayV2Read_1/TensorListGetItem}}]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\D2D_A2C-master\v2\coma_centralized.py", line 341, in
_, total_loss_critic = sess.run([central_critic.critic_optim,
File "D:\Anaconda\envs\py310\lib\site-packages\tensorflow\python\client\session.py", line 968, in run
result = self._run(None, fetches, feed_dict, options_ptr,
File "D:\Anaconda\envs\py310\lib\site-packages\tensorflow\python\client\session.py", line 1191, in _run
results = self._do_run(handle, final_targets, final_fetches,
File "D:\Anaconda\envs\py310\lib\site-packages\tensorflow\python\client\session.py", line 1371, in _do_run
return self._do_call(_run_fn, feeds, fetches, targets, options,
File "D:\Anaconda\envs\py310\lib\site-packages\tensorflow\python\client\session.py", line 1397, in _do_call
raise type(e)(node_def, op, message) # pylint: disable=no-value-for-parameter
tensorflow.python.framework.errors_impl.InvalidArgumentError: Graph execution error:
Trying to access element 1 in a list with 1 elements.
[[{{node TensorArrayV2Read_1/TensorListGetItem}}]]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.