Tensorflow Serving Compile Error Using Docker on OSX

江枫思渺然 提交于 2019-12-06 05:14:59

Solved! Looks like the issues was with running out of memory in the VM.

Here's how I fixed it:

1) When creating the machine, make sure it has more memory (mine was only 1GB). Here is how you create a docker machine with 4GB:

docker-machine create -d virtualbox --virtualbox-memory 4096 default

2) When running the bazel command pass in a parameter limiting the amount of memory to use. Here I'm running the command using only 2GB:

bazel build -c opt --copt=-mavx --verbose_failures --local_resources 2048,2.0,1.0 -j 1 //tensorflow_serving/example:mnist_export 

Where the original command was:

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