Terminal Tensorflow:量化图形不工作

Terminal Tensorflow:量化图形不工作,terminal,tensorflow,bazel,Terminal,Tensorflow,Bazel,我一直遵循本教程对iOS图形进行量化: 我在终端中运行此命令: bazel build tensorflow/tools/quantization:quantize_graph && \ bazel-bin/tensorflow/tools/quantization/quantize_graph \ --input=stripped_graph.pb \ --input_node_names=Mul \ --output_node_names=final_result \ --o

我一直遵循本教程对iOS图形进行量化:

我在终端中运行此命令:

bazel build tensorflow/tools/quantization:quantize_graph && \
bazel-bin/tensorflow/tools/quantization/quantize_graph \
--input=stripped_graph.pb \
--input_node_names=Mul \
--output_node_names=final_result \
--output=final_output_graph.pb \
--mode=eightbit
但是,所有it输出如下所示:

INFO: Found 1 target...
Target //tensorflow/tools/quantization:quantize_graph up-to-date:
  bazel-bin/tensorflow/tools/quantization/quantize_graph
INFO: Elapsed time: 0.748s, Critical Path: 0.30s
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
ERROR: /tensorflow/tensorflow/core/kernels/BUILD:1315:1: C++ compilation of rule '//tensorflow/core/kernels:matrix_solve_ls_op' failed: gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-canonical-system-headers ... (remaining 100 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 4.
gcc: internal compiler error: Killed (program cc1plus)
为什么它没有完成命令?我的电脑需要GPU吗

更新

在docker映像中运行相同的命令会输出以下内容:

INFO: Found 1 target...
Target //tensorflow/tools/quantization:quantize_graph up-to-date:
  bazel-bin/tensorflow/tools/quantization/quantize_graph
INFO: Elapsed time: 0.748s, Critical Path: 0.30s
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
ERROR: /tensorflow/tensorflow/core/kernels/BUILD:1315:1: C++ compilation of rule '//tensorflow/core/kernels:matrix_solve_ls_op' failed: gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-canonical-system-headers ... (remaining 100 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 4.
gcc: internal compiler error: Killed (program cc1plus)
更新


对于遇到这种情况的任何人,只需在终端中运行命令来量化图形,而不使用docker,这可能需要一些时间(我的大约需要一个小时),但它应该可以工作,并且不需要GPU

没关系,输出只花了一个小时,没有更新