Tensoflow CPU:分配超过系统内存的10%

时间:2018-12-06 08:58:54

标签: tensorflow keras bazel

我使用Tensorflow在Keras中实现了一个模型(CNN + RNN模型)。但是,当我要评估模型时,出现以下错误:

2018 09:48:44.961161: I tensorflow/core/platform     
/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA

2018 09:49:00.450298: W tensorflow/core/framework/allocator.cc:101]    
Allocation of 3359939800 exceeds 10% of system memory.

terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc

这是CPU内存分配的问题,但我不知道如何解决此问题。我模型的参数很小,所以我认为不是问题所在。谢谢你的帮助。

0 个答案:

没有答案