Comments (10)
I figured it out, I was using anaconda distro..
NumPy dependency was not a problem as TF was built from source and was running fine.
$ conda update numpy seemed to work.. not sure why.. but I hope it helps.
from serving.
@Irtza Thanks! and sorry for the delay in getting back to you!
We haven't done that much testing on the GPU build in the open source release, and I wasn't sure what would make this problem GPU specific and didn't have time yet to try and reproduce the failure. Glad it worked out for you and thanks for posting the followup fix!
from serving.
@kirilg not a GPU specific problem I think, I think it was just conda's view of numpy package not consistent with TensorFlow's.. updating numpy through conda, fixed that.
from serving.
I have the same problem. I am using Ubuntu 15.10 with NumPy 1.11 and has no iead why TensorFlow cannot find my numpy.
from serving.
@vodp do you have an anaconda distro of python ? if yes, update conda . and then update numpy through anacoda. $conda update numpy
from serving.
No I am not using Anaconda. In Ubuntu I just built numpy from source.
from serving.
After removing the numpy compiled from source with linkage customization to openblas, re-install numpy from Ubuntu distro sudo apt-get install python-numpy
and rebuild with bazel, the error above disappeared but I get a new mystical error
ERROR: /amy/serving/tensorflow_serving/session_bundle/example/BUILD:34:1: Executing genrule //tensorflow_serving/session_bundle/example:half_plus_two failed: bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 245.
from serving.
I'm guessing the error message will include something about not finding the generated output in .runfiles/tf_serving/tensorflow_serving/... in which case the problem could be fixed in one of two ways:
- Upgrade Bazel to version 0.2.2+
- For older versions of Bazel, simply run
bazel clean
once and recompile withbazel build ...
as usual. The problem is that older versions of Bazel don't automatically regenerate runfiles in the newly introduced workspace name and still use the old path. Cleaning (only once the first time) and recompiling should fix the problem.
from serving.
Actually I just install the latest Bazel
............
Build label: 0.2.2b
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Mon Apr 25 08:08:53 2016 (1461571733)
Build timestamp: 1461571733
Build timestamp as int: 1461571733
bazel clean
and rebuild do not help. The error message is very short so that I could not spot where the problem come from
INFO: From Compiling external/tf/tensorflow/contrib/tensor_forest/core/ops/update_fertile_slots_op.cc [for host]:
external/tf/tensorflow/contrib/tensor_forest/core/ops/update_fertile_slots_op.cc: In member function 'virtual void tensorflow::UpdateFertileSlots::Compute(tensorflow::OpKernelContext*)':
external/tf/tensorflow/contrib/tensor_forest/core/ops/update_fertile_slots_op.cc:187:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (; i < values->size(); ++i) {
^
external/tf/tensorflow/contrib/tensor_forest/core/ops/update_fertile_slots_op.cc: In member function 'void tensorflow::UpdateFertileSlots::SetNewNonFertileLeaves(tensorflow::UpdateFertileSlots::HeapValuesType*, int, tensorflow::OpKernelContext*)':
external/tf/tensorflow/contrib/tensor_forest/core/ops/update_fertile_slots_op.cc:351:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int32 i = start; i < values->size(); ++i) {
^
ERROR: /amy/serving/tensorflow_serving/session_bundle/example/BUILD:34:1: Executing genrule //tensorflow_serving/session_bundle/example:half_plus_two failed: bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 245.
from serving.
I had a similar problem in ubuntu.
I had updated numpy using: pip install --upgrade numpy but I still had the same problem when import tensorflow:
ImportError: numpy.core.multiarray failed to import
The reason was that I had two different numpy installations (one using apt-get and one using pip). For any strange reason tensorflow was using the installation that was installled using apt-get instead of the one using pip (by default when I do import numpy, python uses the one installed with pip).
I solved it unistalling the apt-get version: apt-get remove python-numpy
from serving.
Related Issues (20)
- Failed to build TF serving from source HOT 4
- Segmentation Fault in TF 2.11 HOT 9
- Create special docker images for AVX2/FMA et al support, with special tags HOT 2
- Memory usage of TensorFlow models HOT 7
- Continuous batching HOT 3
- Increased memory usage on TF 2.11 HOT 4
- TensorBoard profile showing high usage of relu HOT 6
- Building tensorflow serving with TCMalloc HOT 1
- Unable to compile prediction_service.proto for Golang HOT 4
- TF Serving batching for Sparse Tensors HOT 6
- TF Serving gets stuck in the polling loop due to a non-existing model provided in config file HOT 3
- Evaluate using Profile-Guided Optimization (PGO) and LLVM BOLT HOT 3
- TensorFlow serving seems to have no version attribute HOT 3
- GPU inference in Docker container fails due to missing libdevice directory HOT 4
- CPU Memory occupied by TF Serving even though serving is on GPU HOT 6
- Version 2.15 release? HOT 7
- Mismatch between TensorRT version used in TF 2.14 GPU docker images for tensorflow/serving and tensorflow/tensorflow causes segfault during inference HOT 1
- Critical Vulnerability HOT 3
- Who to contact for security issues HOT 3
- Difference between Metrics emitted by TF Serving HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serving.