For Video Recommendation in Deep learning QQ Group 277356808
For Visual in deep learning QQ Group 629530787
I'm here waiting for you
wanna have a date with someone in Beijing please join in the QQ Group 737813700
问题来源:Youtube2016模型定时更新问题
小demo测试下:
def update_func():
while True:
global a
global b
a=..
b=..
time.sleep(15)
print("update over".upper())
这个更新函数只有在每次循环完毕才会更新a,b的值,下面函数调用时不影响。
怎么定时更新?建一个线程一直跑就是了。然而更新程序跑了两次就abort了,应该是内存爆了,具体为啥不知道,
实际线上测试,需保存user_id.txt或者