tfdeploy | Deploy tensorflow graphs for fast evaluation
kandi X-RAY | tfdeploy Summary
kandi X-RAY | tfdeploy Summary
Deploy tensorflow graphs for fast evaluation and export to tensorflow-less environments running numpy.
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of tfdeploy
tfdeploy Key Features
tfdeploy Examples and Code Snippets
# preallocate w once at the beginning for each layer
w = np.empty([len(x), layer['kernel'].shape[1]])
# x is input, mult kernel with x, write result to w
x.dot(layer['kernel'], out=w) # matrix mult with kernel
w += layer['bias'] # add bias
Community Discussions
Trending Discussions on tfdeploy
QUESTION
I'm having an issue reverting to tensorflow-cpu from gpu on Windows 10 64 bit, Python 3.5.3.
I'm using riga/tfdeploy to distribute trained models, which is not compatible with tf-gpu. I installed tf-gpu for an experiment, then reverted to cpu, all using pip install/uninstall. Now I'm getting error messages about unknown ops like RealDiv and VariableV2. When starting a tensorflow session I now get a bunch of messages that did not appear before installing and uninstalling the GPU version, like:
OpKernel ('op: "BestSplits" device_type: "CPU"') for unknown op: BestSplits
My question is: How can I remove any trace of tf-gpu from my system and get back to tf-cpu? I'm using tensorflow-1.0.0-cp35-cp35m-win_amd64.whl (V1.0.0)
I read this:
How to uninstall TensorFlow completely?
And several related issues on GitHub, but haven't been able to go back to tf-cpu.
Steps to reproduce:
- On Win 10 64 bit, Python 3.5.3, pip install tensorflow
- run a tf.Session() - no messages about ops like BestSplits, RealDiv etc., tfdeploy runs fine.
- pip install tensorflow-gpu
- pip uninstall tensorflow-gpu
- Some trace of these ops remains registered, causing warnings like
OpKernel ('op: "BestSplits" device_type: "CPU"') for unknown op: BestSplits
while runninng tf, and also causing frameworks like tfdeploy to crash
I have tried completely reinstalling Python 3, deleting all site-packages etc. I've installed and uninstalled CUDA. The ops seem to be registered somewhere, leading to different behavior of tf-cpu after installing and uninstalling tf-gpu.
Any pointers on getting rid of/unregistering these ops is appreciated!
...ANSWER
Answered 2017-Feb-27 at 20:22There was a bug on the PYPI packages generating OpKernel errors. The fix for that as of now is to uninstall TensorFlow, download a nightly build and install it, while the PYPI packages are not replaced.
Please see this issue on Github for more details.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tfdeploy
No Installation instructions are available at this moment for tfdeploy.Refer to component home page for details.
Support
If you have any questions vist the community on GitHub, Stack Overflow.
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page