简单的/一句话总结就是,assert后面的那个语句为真,程序继续,相反,若为假,则报错
asset os.path.isdir('checkpoint'), "Error:no checkpoint directory found"
该程序的含义就是如果checkpoint是个目录则程序继续,如果不是目录,则程序报错“Error: no checkpoint directory found”
简单的/一句话总结就是,assert后面的那个语句为真,程序继续,相反,若为假,则报错
asset os.path.isdir('checkpoint'), "Error:no checkpoint directory found"
该程序的含义就是如果checkpoint是个目录则程序继续,如果不是目录,则程序报错“Error: no checkpoint directory found”