{"id":47230,"date":"2022-12-10T15:38:10","date_gmt":"2022-12-04T20:21:52","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/"},"modified":"2024-04-29T04:36:08","modified_gmt":"2024-04-28T20:36:08","slug":"%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/","title":{"rendered":"\u6211\u5728Jetson TX1\u4e0a\u5c1d\u8bd5\u5b89\u88c5TensorFlow"},"content":{"rendered":"<h2>\u73af\u5883<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Jetson TX1<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">JetPack 3.2 (CUDA-9.0\/cuDNN 7.0)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">TensorFlow 1.7.0<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Python 3.5<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Bazel 0.11.1<\/ul>\n<h2>\u524d\u63d0<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\/home\u3092SD\u30ab\u30fc\u30c9\u4e0a\u306b\u4f5c\u6210\u3057\u3066\u3042\u308b\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">swap 8GB (\/home\/other\/swapfile)\u3092\u8d77\u52d5\u6642\u306b\u81ea\u52d5ON\u3059\u308b\u3002<\/ul>\n<h2>\u5b89\u88c5<\/h2>\n<pre class=\"post-pre\"><code>$ git clone https:\/\/github.com\/jetsonhacks\/installTensorFlowTX2.git\r\n$ cd installTensorFlowTX2\r\n$ vi script\/installBazel.sh\r\n<\/code><\/pre>\n<p>\u7531\u4e8e bazel-0.10.0 \u6784\u5efa\u5931\u8d25\uff0c\u6240\u4ee5\u5c06\u5176\u66f4\u6362\u4e3a 0.11.1 \u7248\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">INSTALL_DIR<\/span><span class=\"o\">=<\/span><span class=\"nv\">$PWD<\/span>\r\n<span class=\"nb\">cd<\/span> <span class=\"nv\">$HOME<\/span>\r\nwget <span class=\"nt\">--no-check-certificate<\/span> https:\/\/github.com\/bazelbuild\/bazel\/releases\/download\/0.11.1\/bazel-0.11.1-dist.zip\r\nunzip bazel-0.11.1-dist.zip <span class=\"nt\">-d<\/span> bazel-0.11.1-dist\r\n<span class=\"nb\">sudo chmod<\/span> <span class=\"nt\">-R<\/span> ug+rwx <span class=\"nv\">$HOME<\/span>\/bazel-0.11.1-dist\r\n<span class=\"nb\">cd <\/span>bazel-0.11.1-dist\r\n.\/compile.sh \r\n<span class=\"nb\">sudo cp <\/span>output\/bazel \/usr\/local\/bin\r\n<\/code><\/pre>\n<p>\u5c06 &#8220;TensorRT support&#8221; \u8bbe\u7f6e\u4e3a &#8220;\u662f&#8221; \u540e\uff0c\u6784\u5efa\u4f1a\u5d29\u6e83\u3002\u4e4b\u540e\u4f1a\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<pre class=\"post-pre\"><code>$ .\/installPrerequisitesPy3.sh \r\n$ git clone https:\/\/github.com\/tensorflow\/tensorflow.git\r\n$ cd tensorflow\r\n$ git checkout v1.7.0\r\n$ .\/configure\r\nWARNING: Running Bazel server needs to be killed, because the startup options are different.\r\nYou have bazel 0.11.1- (@non-git) installed.\r\nPlease specify the location of python. [Default is \/usr\/bin\/python]: \/usr\/bin\/python3\r\n\r\nFound possible Python library paths:\r\n  \/usr\/lib\/python3.5\/dist-packages\r\n  \/usr\/local\/lib\/python3.5\/dist-packages\r\n  \/usr\/lib\/python3\/dist-packages\r\nPlease input the desired Python library path to use.  Default is [\/usr\/lib\/python3.5\/dist-packages]\r\n\r\nDo you wish to build TensorFlow with jemalloc as malloc support? [Y\/n]: \r\njemalloc as malloc support will be enabled for TensorFlow.\r\n\r\nDo you wish to build TensorFlow with Google Cloud Platform support? [Y\/n]: n\r\nNo Google Cloud Platform support will be enabled for TensorFlow.\r\n\r\nDo you wish to build TensorFlow with Hadoop File System support? [Y\/n]: n\r\nNo Hadoop File System support will be enabled for TensorFlow.\r\n\r\nDo you wish to build TensorFlow with Amazon S3 File System support? [Y\/n]: n\r\nNo Amazon S3 File System support will be enabled for TensorFlow.\r\n\r\nDo you wish to build TensorFlow with Apache Kafka Platform support? [y\/N]: n\r\nNo Apache Kafka Platform support will be enabled for TensorFlow.\r\n\r\nDo you wish to build TensorFlow with XLA JIT support? [y\/N]: n\r\nNo XLA JIT support will be enabled for TensorFlow.\r\n\r\nDo you wish to build TensorFlow with GDR support? [y\/N]: n\r\nNo GDR support will be enabled for TensorFlow.\r\n\r\nDo you wish to build TensorFlow with VERBS support? [y\/N]: n\r\nNo VERBS support will be enabled for TensorFlow.\r\n\r\nDo you wish to build TensorFlow with OpenCL SYCL support? [y\/N]: n\r\nNo OpenCL SYCL support will be enabled for TensorFlow.\r\n\r\nDo you wish to build TensorFlow with CUDA support? [y\/N]: y\r\nCUDA support will be enabled for TensorFlow.\r\n\r\nPlease specify the CUDA SDK version you want to use, e.g. 7.0. [Leave empty to default to CUDA 9.0]: \r\n\r\nPlease specify the location where CUDA 9.0 toolkit is installed. Refer to README.md for more details. [Default is \/usr\/local\/cuda]: \r\n\r\nPlease specify the cuDNN version you want to use. [Leave empty to default to cuDNN 7.0]: 7\r\n\r\nPlease specify the location where cuDNN 7 library is installed. Refer to README.md for more details. [Default is \/usr\/local\/cuda]:\r\n\r\nDo you wish to build TensorFlow with TensorRT support? [y\/N]: n\r\nNo TensorRT support will be enabled for TensorFlow.\r\n\r\nPlease specify a list of comma-separated Cuda compute capabilities you want to build with.\r\nYou can find the compute capability of your device at: https:\/\/developer.nvidia.com\/cuda-gpus.\r\nPlease note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,5.2]6.2\r\n\r\nDo you want to use clang as CUDA compiler? [y\/N]: \r\nnvcc will be used as CUDA compiler.\r\n\r\nPlease specify which gcc should be used by nvcc as the host compiler. [Default is \/usr\/bin\/gcc]: \r\n\r\nDo you wish to build TensorFlow with MPI support? [y\/N]: \r\nNo MPI support will be enabled for TensorFlow.\r\n\r\nPlease specify optimization flags to use during compilation when bazel option \"--config=opt\" is specified [Default is -march=native]: \r\n\r\nWould you like to interactively configure .\/WORKSPACE for Android builds? [y\/N]: n\r\nNot configuring the WORKSPACE for Android builds.\r\n\r\nPreconfigured Bazel build configs. You can use any of the below by adding \"--config=&lt;&gt;\" to your build command. See tools\/bazel.rc for more details.\r\n    --config=mkl            # Build with MKL support.\r\n    --config=monolithic     # Config for mostly static monolithic build.\r\nConfiguration finished\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ bazel build --config=opt --config=cuda \/\/tensorflow\/tools\/pip_package:build_pip_package\r\n$ bazel-bin\/tensorflow\/tools\/pip_package\/build_pip_package \/tmp\/tensorflow_pkg\r\n$ sudo pip3 install \/tmp\/tensorflow_pkg\/tensorflow-1.7.0-py2-none-any.whl\r\n<\/code><\/pre>\n<h2>\u786e\u8ba4\u52a8\u4f5c<\/h2>\n<pre class=\"post-pre\"><code>$ cd \r\n$ python3\r\nimport tensorflow as tf\r\n\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u73af\u5883 Jetson TX1 &nbsp; JetPack 3.2 (CUDA-9.0\/cuDNN 7.0) &#038; [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-47230","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6211\u5728Jetson TX1\u4e0a\u5c1d\u8bd5\u5b89\u88c5TensorFlow - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5728jetson-tx1\u4e0a\u5c1d\u8bd5\u5b89\u88c5tensorflow\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u5728Jetson TX1\u4e0a\u5c1d\u8bd5\u5b89\u88c5TensorFlow\" \/>\n<meta property=\"og:description\" content=\"\u73af\u5883 Jetson TX1 &nbsp; JetPack 3.2 (CUDA-9.0\/cuDNN 7.0) &amp; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5728jetson-tx1\u4e0a\u5c1d\u8bd5\u5b89\u88c5tensorflow\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-04T20:21:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T20:36:08+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/\",\"name\":\"\u6211\u5728Jetson TX1\u4e0a\u5c1d\u8bd5\u5b89\u88c5TensorFlow - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-12-04T20:21:52+00:00\",\"dateModified\":\"2024-04-28T20:36:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u5728Jetson TX1\u4e0a\u5c1d\u8bd5\u5b89\u88c5TensorFlow\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6211\u5728Jetson TX1\u4e0a\u5c1d\u8bd5\u5b89\u88c5TensorFlow - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5728jetson-tx1\u4e0a\u5c1d\u8bd5\u5b89\u88c5tensorflow\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u5728Jetson TX1\u4e0a\u5c1d\u8bd5\u5b89\u88c5TensorFlow","og_description":"\u73af\u5883 Jetson TX1 &nbsp; JetPack 3.2 (CUDA-9.0\/cuDNN 7.0) & [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5728jetson-tx1\u4e0a\u5c1d\u8bd5\u5b89\u88c5tensorflow\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-12-04T20:21:52+00:00","article_modified_time":"2024-04-28T20:36:08+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/","name":"\u6211\u5728Jetson TX1\u4e0a\u5c1d\u8bd5\u5b89\u88c5TensorFlow - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-12-04T20:21:52+00:00","dateModified":"2024-04-28T20:36:08+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6211\u5728Jetson TX1\u4e0a\u5c1d\u8bd5\u5b89\u88c5TensorFlow"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%9c%a8jetson-tx1%e4%b8%8a%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85tensorflow%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=47230"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47230\/revisions"}],"predecessor-version":[{"id":82253,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47230\/revisions\/82253"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=47230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=47230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=47230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}