Categories
Misc

/tensorflow Subdirect Statistics

submitted by /u/_kiminara
[visit reddit] [comments]

Categories
Misc

TFLite optimization best practices for deployment on Android?

Hi everyone. I’m deploying a resnet based 928×928 UNet on an android device. Performance is suboptimal even with GPU. Currently I’m only optimizing the models using the tf.lite.Optimize.DEFAULT flag. I was wondering if any of you have had experience with more intricate optimization techniques aimed specifically at latency and not neccesarily size reduction.

submitted by /u/ronsap123
[visit reddit] [comments]

Categories
Misc

Best way to improve inference throughput

I see multiple options on the internet to optimize inference, and i don’t know which would be the best fit for me. My goal is to maximize throughput on GPU, and preferably reduce GPU memory usage.

I have a reinforcement learning project, where i have multiple cpu processes generating input data in batches and sending them over to a single GPU for inference. Each process loads the same resnet model with two different weight configurations at a time. The weights used get updated about every 30 minutes and get distributed between the processes. I use Python and Tensorflow 2.7 on Windows(don’t judge) and the only optimization is use right now is the built-in XLA optimizations. My GPU does not support FP-16.

I have seen TensorRT being suggested to optimize inference, i have also seen TensorflowLite, Intel has an optimization tool too, and then there is Tensorflow Serve. What option do you think would fit my needs best?

submitted by /u/LikvidJozsi
[visit reddit] [comments]

Categories
Misc

VentureBeat: How to discover AI code, know-how with CatalyzeX

VentureBeat: How to discover AI code, know-how with CatalyzeX submitted by /u/fullerhouse570
[visit reddit] [comments]
Categories
Misc

Detecting CUDA libraries on Windows

Detecting CUDA libraries on Windows

So I’ve had things working fine on linux and now i’m trying to set up the same on windows so I can use the newer gpu in a new machine. The problem is that after install of both CUDA toolkit and cuDNN, the libraries are never picked up even after several restarts. I’ve searched quite a bit and haven’t turned up anything that works, and don’t know of a way to get Windows to look in the new PATH variable that the installer did properly set up.

​

These are the offending libraries

One thing to note is that when I copy the offending dynamic libs to System32, my run on the command line picks up the libraries and detects my gpu as it should. So something’s happening with searching for them in another PATH, I just don’t know how to fix it. This sort of thing rarely happens on linux and even when it does, ldconfig is usually the answer.

​

Update: I tried something I didn’t think would work, but it turns out it did. I originally downloaded python from the windows app store because I figured it would save some time and python using scoop as the installer wasn’t working. I uninstalled the windows app store version of Python 3.8 and installed the same version from the python organization’s website, and now everything is working.

I’m not sure what the issue is with windows app store downloads, but i’ve had an incident with Slack via the same method. The issue with Slack was completely different, but from what I can tell, python was installed in a different location from the windows store than it normally would’ve been, and I think that contributed somehow. On linux, there’s 4 folders anything could ever be installed to automatically by convention, so we don’t run into this specific problem on the platform. That’s why troubleshooting this was so tiresome.

submitted by /u/CrashOverride332
[visit reddit] [comments]

Categories
Misc

How to retrofit an existing TF setup to use an onboard GPU?

Hi all,

I’ve got a Lenovo Legion laptop with an onboard GeForce GTX 1660 GPU. Here’s some setup details:

– Ubuntu 21.10

– Python 3.9.7

– using pip (not Conda)

– Tensorflow 2.7.0 (from Python: “tf.__version__” returns 2.7.0)

– TF doesn’t yet recognize GPU existence: “tf.config.list_physical_devices(‘GPU’) returns []

– I think I have CUDA installed: (cat /proc/driver/nvidia/version):

NVRM version: NVIDIA UNIX x86_64 Kernel Module 495.29.05 Thu Sep 30 16:00:29 UTC 2021

GCC version: gcc version 11.2.0 (Ubuntu 11.2.0-7ubuntu2)

I’m doing a TensorFlow tutorial (with PyTorch to come) & have reached a point where I need the GPU. How can I get TF to recognize it?

Before you ask: yes, I *could* download a Docker container or use Colab. I’m going this route because it seems dumb to have a GPU at my fingertips and not use it.

Thanks all & HNY…

submitted by /u/PullThisFinger
[visit reddit] [comments]

Categories
Misc

Advent of Code 2021 in pure TensorFlow – day 9. Image gradients, 4-neighborhood, and flood fill algorithms in pure TensorFlow.

Advent of Code 2021 in pure TensorFlow - day 9. Image gradients, 4-neighborhood, and flood fill algorithms in pure TensorFlow. submitted by /u/pgaleone
[visit reddit] [comments]
Categories
Misc

Someone please help

I’ve been trying to install tensorflow on vscode for 2 hours now and no matter what I do It wont do it. If someone knows how to do so can they dm me and help.

submitted by /u/Unknown_ZZ
[visit reddit] [comments]

Categories
Misc

Advent of Code 2021 in pure TensorFlow – day 8

Advent of Code 2021 in pure TensorFlow - day 8 submitted by /u/pgaleone
[visit reddit] [comments]
Categories
Misc

5 Ways AI Aimed to Improve the World in 2021

Not so long ago, searching for information could lead to a library to scan endless volumes or even tediously sift through microfilm. Clearly, technology is making the world a better place. Scientists, researchers, developers and companies have been on a quest to solve some of the world’s most pressing problems. Only now they’re accelerating their Read article >

The post 5 Ways AI Aimed to Improve the World in 2021 appeared first on The Official NVIDIA Blog.