where to config iopub_data_rate_limit on Colaboratory?

别来无恙 提交于 2020-05-13 07:33:40

问题


I have the following error when loading model weights in Colaboratory:

IOPub data rate exceeded. The notebook server will temporarily stop sending output to the client in order to avoid crashing it. To change this limit, set the config variable --NotebookApp.iopub_data_rate_limit.

Current values: NotebookApp.iopub_data_rate_limit=1000000.0 (bytes/sec) NotebookApp.rate_limit_window=3.0 (secs)

UnicodeDecodeErrorTraceback (most recent call last) in () 6 if if_init_from_ckpt_file: 7 print('load saved model from', ckpt_file) ----> 8 model.load_weights(ckpt_file) 9


回答1:


An IOPub error usually occurs when you try to print a large amount of data to the console. Check your print statements - if you're trying to print a file/data variable that exceeds 10MB, its likely that this caused the error. Try to print smaller portions of the file/data.



来源:https://stackoverflow.com/questions/49425291/where-to-config-iopub-data-rate-limit-on-colaboratory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!