bazelでbuildできません。
tensorflow liteでpbファイルをtfliteに変換するためbuildしてfreeze作業を行いたいのですが、buildできません。ご教授願います。
MYNAMEは私の名前が記載されています。
また、以下のサイトを参照しています。https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite
C:\Users\tensorflow\tensorflow>bazel build tensorflow/python/tools:freeze_graph DEBUG: C:/users/MYNAME/appdata/local/temp/_bazel_MYNAME/uzmlxi0x/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:37:3: Auto-Configuration Warning: 'BAZEL_VC' is not set, start looking for the latest Visual C++ installed. DEBUG: C:/users/MYNAME/appdata/local/temp/_bazel_MYNAME/uzmlxi0x/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:37:3: Auto-Configuration Warning: Looking for VS%VERSION%COMNTOOLS environment variables,eg. VS140COMNTOOLS DEBUG: C:/users/MYNAME/appdata/local/temp/_bazel_MYNAME/uzmlxi0x/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:37:3: Auto-Configuration Warning: Visual C++ build tools found at C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ ERROR: C:/users/tensorflow/tensorflow/tensorflow/python/tools/BUILD:49:1: error loading package 'tensorflow/core': Encountered error while reading extension file 'protobuf.bzl': no such package '@protobuf_archive//': Traceback (most recent call last): File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 84 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 55, in _apply_patch _execute_and_check_ret_code(ctx, cmd) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 36, in _execute_and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(127) when executing 'C:\msys64\usr\bin\bash.exe -c patch -p1 -d C:/users/MYNAME/appdata/local/temp/_bazel_MYNAME/uzmlxi0x/external/protobuf_archive -i C:/users/tensorflow/tensorflow/third_party/protobuf/add_noinlines.patch': Stdout: Stderr: /usr/bin/bash: patch: command not found and referenced by '//tensorflow/python/tools:freeze_graph' ERROR: Analysis of target '//tensorflow/python/tools:freeze_graph' failed; build aborted: error loading package 'tensorflow/core': Encountered error while reading extension file 'protobuf.bzl': no such package '@protobuf_archive//': Traceback (most recent call last): File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 84 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 55, in _apply_patch _execute_and_check_ret_code(ctx, cmd) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 36, in _execute_and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(127) when executing 'C:\msys64\usr\bin\bash.exe -c patch -p1 -d C:/users/MYNAME/appdata/local/temp/_bazel_MYNAME/uzmlxi0x/external/protobuf_archive -i C:/users/tensorflow/tensorflow/third_party/protobuf/add_noinlines.patch': Stdout: Stderr: /usr/bin/bash: patch: command not found INFO: Elapsed time: 10.435s FAILED: Build did NOT complete successfully (12 packages loaded) currently loading: tensorflow/core ... (3 packages)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/12/21 12:27
2018/01/02 12:39
2018/01/02 12:44
2018/01/04 15:42