繁体   English   中英

适用于Keras模型的Google云平台VM实例上的内存分配错误

[英]Memory allocation error on Google cloud platform VM Instance for Keras Model

我正在尝试在GCP VM实例上部署训练有素的模型。 它的大小约为94mb。 该代码在我的本地计算机上运行良好。 我能够启动flask服务器,通过cURL调用发送图像并获得结果。 但是在GCP上,每当我尝试加载模型时,我得到allocation of 52953088 exceeds 10% of system memory错误allocation of 52953088 exceeds 10% of system memory该进程被allocation of 52953088 exceeds 10% of system memory

同一模型可以安全加载并在我的本地计算机上运行。 我应该增加VM实例的内存还是有其他方法?

通过创建具有更多内存的新实例,我能够解决该错误。 将内存从micro(大约0.6gb)增加到small(1.7gb)解决了该错误。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM