DAweibeke 2020-05-18 00:59 采纳率: 0%
浏览 86
已结题

运行深度学习代码是出现问题

Traceback (most recent call last):

 File "<input>", line 1, in <module>

 File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile

  pydev_imports.execfile(filename, global_vars, local_vars) # execute the script

 File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile

  exec(compile(contents+"\n", file, 'exec'), glob, loc)

 File "/Users/onereoublic/Downloads/Wireless_Scheduling-master/Evaluate/evaluate_sumrate.py", line 45, in <module>

  allocs_all_methods["Deep Learning"] = Deep_Learning_Scheduling.sumRate_scheduling(general_para, layouts)

 File "/Users/onereoublic/Downloads/Wireless_Scheduling-master/Neural_Network_Model/Deep_Learning_Scheduling.py", line 18, in sumRate_scheduling

  neural_net.build_network()

 File "/Users/onereoublic/Downloads/Wireless_Scheduling-master/Neural_Network_Model/Convolutional_Neural_Network_Model.py", line 131, in build_network

  self.prepare_parameters() # set up parameters to be reused in iteration_step function call

 File "/Users/onereoublic/Downloads/Wireless_Scheduling-master/Neural_Network_Model/Convolutional_Neural_Network_Model.py", line 52, in prepare_parameters

  with tf.compat.v1.get_variable_scope("fc_lyr1"):

TypeError: get_variable_scope() takes 0 positional arguments but 1 was given



  • 写回答

5条回答 默认 最新

  • 「已注销」 2020-05-18 08:37
    关注
    get_variable_scope()不需要参数
    tf.compat.v1.get_variable_scope()
    
    评论

报告相同问题?