LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Latest supported version of Tensorflow?

Hi,

On this subject I finally don't use the Labview implementation of Tensorflow.

I use instead the C Api from tensorflow.dll (runtime library compiled by TF team).

https://www.tensorflow.org/install/lang_c

The advantage is that you're independent from the NI development and you can use the last stable TF version with GPU acceleration (CPU and GPU versions of the dll are available).

You also can get rid of the frozen model with all the previously mentioned bugs and use the native model.

To do that, I've created my own dll with MSVC. It instantiates a C++ object to maintain a pointer TFsession in Labview.

I also wrapped the dll call behind a Labview API and reserved the required output memory from Labview which was not obvious.

This way, I can compute inferences very quickly using the GPU.

For instance, classification on 256x256 images gets an answer after 4ms.

Thus, it can be integrated in real-time application.

HTH

Thierry

Message 11 of 12
(543 Views)

Hi Thierry,

I am very interested in how you have achieved this. Can you give a code example of how you have achieved this please. I am just trying to implement Tensor flow with NI vision and having the same version problems as everyone else.

0 Kudos
Message 12 of 12
(437 Views)