Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install tensorflow in Jetson TX2

2025-04-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to install tensorflow in Jetson TX2. It is very detailed and has a certain reference value. Friends who are interested must finish it!

To install tensorflow on Jetson TX2, you need to compile in the source code, at least I see that the current tutorials are compiled on the source code, and it will take a long time to compile.

Source code compilation and installation of tensorflow can refer to my other tutorial, here are some key points for attention.

Bazel and tensorflow

The version of bazel and tensorflow should not be too high. I choose the version of bazel and tensorflow too high, which leads to problems after installation. Although I don't know if it is because the dependence is not complete, it is recommended to choose a lower version here.

My choice is bazel-5.4,tensorflow1.3.

Insufficient memory space

It is said on the Internet that there may be insufficient memory space in compiling tensorflow, so I need to make an swap file, but in fact I didn't encounter it, but I still record it.

# Create an 8GB swapfilefallocate-l 8G swapfile#Change permission of the swapfilechmod 600swapfile#Create swap areamkswap swapfile#Activate the swap areasudo swapon swapfile# deactive the swap aresudo swapoff swapfile#Confirm swap area being usedswapon-s

Modify tensorflow/stream_executor/cuda/cuda_gpu_executor.cc

Find the function static int TryToReadNumaNode (conststring & pci_bus_id,intdevice_ordinal) in tensorflow/stream_executor/cuda/cuda_gpu_executor.cc and add something at the beginning

LOG (INFO)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report