Closed valentindbdg closed 6 years ago
I am experiencing the same problem with the 1.8 wheelfile not being supported. However, I can help with the patch error and get you back on track to figuring out the wheelfile issue. Simply follow these steps below.
cd to the tensorflow_install directory from the terminal then enter
sudo swapoff swapfile.swap
That should take a couple of moments to turn off the swap file. Then,
sudo swapoff -a
Then,
sudo rm -rf swapfile.swap
Finally, cd back to the JetsonTFBuild directory from your terminal and enter,
sudo rm -rf TensorFlow_Install
After you do all of that, you can attempt to install tensorflow again,
Thank you @EmpireofKings I installed tensorflow again as root and it was successful. However I had an error when I tried to run:
import tensorflow as tf
a = tf.constant(10)
b = tf.constant(32)
sess = tf.Session()
sess.run(a + b)
"CUDA_ERROR_OUT_OF_MEMORY"
The only way I found to avoid this error was to manually set the memory used by tensorflow.
gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.7)
sess = tf.Session(config=tf.ConfigProto(gpu_options=gpu_options))
Do you know a way so I do not have to allocate the memory manually?
@valentindbdg The memory issue is more of a Jetson design than a Tensorflow problem. Jetson's are designed such that the GPU and CPU share memory. When Tensorflow queries the memory it can only find what the CPU hasn't taken up. Manually setting the memory actually helps because it forces the system to give the memory to the GPU and the CPU goes and finds memory somewhere else.
Hello,
I tried to run BuildTensorFlow.sh on my TX2 flashed with Jetpack 3.2 using
sudo bash BuildTensorFlow.sh
. I also changedPYTHON_BIN_PATH=$(which python3)
to build for Python 3.So I tried again running it using
sudo -H
after having upgraded pip and as root as well, but I still have an error:@JasonAtNvidia in the section "To do" you mention:
Did I forget to do something? Thanks for your help