herbert-chen / tianchi_lvcai

天池竞赛Baseline分享(2018广东工业智造大数据创新大赛——智能算法赛,线上0.921无调参)
255 stars 98 forks source link

main_inception_v4.py line285 nonlocal? #1

Closed fengdongsheng closed 6 years ago

fengdongsheng commented 6 years ago

nonlocal lr 报错:SyntaxError: invalid syntax

herbert-chen commented 6 years ago

你好,如果你去掉了main函数,改成了直接运行,那么需要把nonlocal关键词改成global

fengdongsheng commented 6 years ago

3q ,i changed it to global; 还有一个地方可能报错: line:os.environ["CUDA_VISIBLE_DEVICES"] = '0,1', 先看看还有哪些卡是空的,我的两张卡,只有卡1空着,so:os.environ["CUDA_VISIBLE_DEVICES"] = '1'