You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run bazel to convert tf model to tflite model according to this tutorial Running on mobile with TensorFlow Lite
ERROR: error loading package '': in F:/card-details-recognition-android-version2/tensorflow/tensorflow/workspace.bzl: Unable to load package for '//tensorflow/tools/def_file_filter:def_file_filter_configure.bzl': BUILD file not found on package path
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
bazel run -c opt tensorflow/lite/toco:toco -- --input_file=F:/ssd_mobilenet_v1_coco_2018_01_28/lite/tflite_graph.pb --output_file=F:/ssd_mobilenet_v1_coco_2018_01_28/lite/detect.tflite --input_shapes=1,300,300,3 --input_arrays=normalized_input_image_tensor --output_arrays='TFLite_Detection_PostProcess','TFLite_Detection_PostProcess:1','TFLite_Detection_PostProcess:2','TFLite_Detection_PostProcess:3' --inference_type=QUANTIZED_UINT8 --mean_values=128 --std_values=128 --change_concat_input_ranges=false --allow_custom_ops
The error is:
ERROR: error loading package '': in F:/tensorflow/tensorflow/workspace.bzl: Unable to load package for '//tensorflow/tools/def_file_filter:def_file_filter_configure.bzl': BUILD file not found on package path
What operating system are you running Bazel on?
Window10
What's the output of bazel info release?
release 0.22.0
What's the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?
is from September 2017 wheras bazel 0.22.0 is from January 2019; that's more than a year off.
Secondly, you quote the error message
ERROR: error loading package '': in F:/card-details-recognition-android-version2/tensorflow/tensorflow/workspace.bzl: Unable to load package for '//tensorflow/tools/def_file_filter:def_file_filter_configure.bzl': BUILD file not found on package path
Now, it complains that it didn't find a BUILD in the directory tensorflow/tools/def_file_filter. Does such a file exist? Does the directory even exist? If the BUILD file exists, please provide more information on how the source tree looks like (how can we obtain it?). If the BUILD file does not exist, the error message is legitimate and it is not a bazel problem, but an issue with the repository you're trying to build.
Closing for now as a duplicate of tensorflow/tensorflow#25997. Please reopen if it actually turns out to be a bazel issue.
Description of the problem / feature request:
I run bazel to convert tf model to tflite model according to this tutorial Running on mobile with TensorFlow Lite
ERROR: error loading package '': in F:/card-details-recognition-android-version2/tensorflow/tensorflow/workspace.bzl: Unable to load package for '//tensorflow/tools/def_file_filter:def_file_filter_configure.bzl': BUILD file not found on package path
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
bazel run -c opt tensorflow/lite/toco:toco -- --input_file=F:/ssd_mobilenet_v1_coco_2018_01_28/lite/tflite_graph.pb --output_file=F:/ssd_mobilenet_v1_coco_2018_01_28/lite/detect.tflite --input_shapes=1,300,300,3 --input_arrays=normalized_input_image_tensor --output_arrays='TFLite_Detection_PostProcess','TFLite_Detection_PostProcess:1','TFLite_Detection_PostProcess:2','TFLite_Detection_PostProcess:3' --inference_type=QUANTIZED_UINT8 --mean_values=128 --std_values=128 --change_concat_input_ranges=false --allow_custom_ops
The error is:
ERROR: error loading package '': in F:/tensorflow/tensorflow/workspace.bzl: Unable to load package for '//tensorflow/tools/def_file_filter:def_file_filter_configure.bzl': BUILD file not found on package path
What operating system are you running Bazel on?
Window10
What's the output of
bazel info release
?release 0.22.0
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?git remote get-url origin
https://github.com/ixuexi/bazel.git
git rev-parse master
edeebd8
git rev-parse HEAD
edeebd8
Have you found anything relevant by searching the web?
bazel build fails with
error loading package ''
when invoked in agit submodule foreach
commandThe text was updated successfully, but these errors were encountered: