本文介绍了在Colaboratory的哪里配置iopub_data_rate_limit?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在协作实验室中加载模型权重时出现以下错误:

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

当前值:NotebookApp.iopub_data_rate_limit = 1000000.0 (字节/秒)NotebookApp.rate_limit_window = 3.0(秒)

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

UnicodeDecodeErrorTraceback(最近一次通话) 在 () 6 if_init_from_ckpt_file: 7打印('从...加载保存的模型,ckpt_file) ----> 8个model.load_weights(ckpt_file) 9

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

推荐答案

当您尝试向控制台打印大量数据时,通常会发生IOPub错误.检查您的打印语句-如果您要打印超过10MB的文件/数据变量,则很可能是导致此错误的原因.尝试打印文件/数据的较小部分.

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.

这篇关于在Colaboratory的哪里配置iopub_data_rate_limit?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 03:23