谷歌深度学习框架学习-TensorFlow

TensorFlow可以分成两块去看,tensor和flow,tensor中文为张量,TensorFlow中的所有数据都是通过张量的形式来表示,张量可以看成是数组,n阶张量可以理解成n维数组,但和数组有有所不同,对于数据的运算,只是对结果的引用进行保存,而不是真正保存数字,是保存数字的计算过程,tensor由三个部分组成,1.属性名字,2.张量的维度,3.张量的类型。而flow-流,则体现了它的计算模型,表达了张量间计算转化的过程,TensorFlow就是通过计算图表达计算的过程。

第一个TensorFlow py3 spyder 程序

import tensorflow as tf
w1=tf.Variable(tf.random_normal([2,3],stddev=1,seed=1));
w2=tf.Variable(tf.random_normal([3,1],stddev=1,seed=1));
x=tf.constant([[0.7,0.9]]);
a=tf.matmul(x,w1);
y=tf.matmul(a,w2);
sess=tf.Session();
sess.run(w1.initializer);
sess.run(w2.initializer);
print(sess.run(y));
sess.close();

#tf.InteractiveSession()用来生成一个Session,Session相当于一个引擎,TensorFlow框架要真正的进行计算,都要通过Session引擎来启动。

另一个

import tensorflow as tf
a=tf.constant(2,shape=[2]);#表示一维,只有两个数据
b=tf.constant(2,shape=[2,2]);#表示两维,2×2的矩阵
c=tf.constant([1,2,3],shape=[6]);
d=tf.constant([1,2,3],shape=[3,2]);
sess=tf.InteractiveSession();
print(sess.run(a));
print(sess.run(b));
print(sess.run(c));
print(sess.run(d));

 

413 thoughts on “谷歌深度学习框架学习-TensorFlow

  1. I needed to compose you a little bit of word to finally thank you so much as before regarding the pleasant ideas you have documented at this time. It has been simply remarkably generous with people like you to provide unhampered exactly what most of us could possibly have supplied for an electronic book to end up making some cash on their own, mostly since you could possibly have done it in case you desired. Those tips also served like the easy way to recognize that other people online have the same eagerness like mine to grasp many more in respect of this matter. Certainly there are some more pleasant occasions up front for those who view your website.

  2. Pingback: Google
  3. Pingback: Bondage Dominatrix
  4. Pingback: Huge Dildo
  5. Pingback: aflamneeksex
  6. Pingback: mp3 music download
  7. Pingback: couples toys
  8. Pingback: penis extender sheath
  9. Pingback: big sex toys
  10. Pingback: the best vibrator
  11. Pingback: xlxx
  12. Pingback: Money making websites
  13. Pingback: Brow Lift Surgery
  14. Pingback: pet car
  15. Pingback: Philly Food
  16. Pingback: fulton bail bond
  17. Pingback: سكس
  18. Pingback: full apps download
  19. Pingback: junk cars
  20. Pingback: Abraaj
  21. Pingback: ninebot
  22. Pingback: hosting
  23. Pingback: electric bike
  24. Pingback: Lesbian Clit Vibe
  25. Pingback: sex toy review
  26. Pingback: phenq benefits
  27. Pingback: app for laptop
  28. Pingback: apps download for pc
  29. Pingback: electric bike
  30. Pingback: seo service
  31. Pingback: free phone cases
  32. Pingback: attorney
  33. Pingback: christiandogma
  34. Pingback: $0 down car leasing
  35. Pingback: investment
  36. Pingback: mutual funds
  37. Pingback: Speelgoed vergelijk
  38. Pingback: gifts for dad
  39. Pingback: hulu cards paypal
  40. Pingback: Mentor
  41. Pingback: denver limo airport
  42. Pingback: FS 19 mods
  43. Pingback: MILF Porn Online
  44. Pingback: fingal plasterer
  45. Pingback: yoyomedia login
  46. Pingback: Stack Tower
  47. Pingback: lolicock revew
  48. Pingback: best priced hotels
  49. Pingback: Serbian husky expert
  50. Pingback: mp3
  51. Pingback: Managed Backup
  52. Pingback: djkhan
  53. Pingback: jesus christ quiz
  54. Pingback: german rottweiler
  55. Pingback: convert youtube mp3
  56. Pingback: Dance Lessons
  57. Pingback: Badkamer inspiratie
  58. Pingback: friends
  59. Pingback: celine
  60. Pingback: custom patches
  61. Pingback: Vicodin For sale
  62. Pingback: children
  63. Pingback: tema su napoleone
  64. Pingback: beauty courses mumbai
  65. Pingback: hair styling courses
  66. Pingback: nail art courses
  67. Pingback: prazdnik zavtra
  68. Pingback: game for pc
  69. Pingback: xxarxx
  70. Pingback: games for pc download
  71. Pingback: jewelry
  72. Pingback: Valentino Garavani
  73. Pingback: Saint Laurent
  74. Pingback: Prada
  75. Pingback: Stella Mccartney
  76. Pingback: porno
  77. Pingback: Interracial Porn
  78. Pingback: porn movies
  79. Pingback: photo to drawing
  80. Pingback: jewelry
  81. Pingback: Weekendje weg
  82. Pingback: Natrual Foods
  83. Pingback: therapist web design
  84. Pingback: swan wand
  85. Pingback: resin 3d
  86. Pingback: 26 oktjabrja
  87. Pingback: wedding make up tips
  88. Pingback: Sex Toy
  89. Pingback: Poker
  90. Pingback: Alexander McQueen
  91. Pingback: Balenciaga
  92. Pingback: Bottega Veneta
  93. Pingback: Salvatore Ferragamo
  94. Pingback: Burberry
  95. Pingback: Tom Ford
  96. Pingback: lesbianas xxx
  97. Pingback: xmobile pro
  98. Pingback: discount promo
  99. Pingback: Adult SEO
  100. Pingback: beeg.com
  101. Pingback: Bvlgari
  102. Pingback: Fendi
  103. Pingback: Chloe
  104. Pingback: 925oPm6g5mm
  105. Pingback: hdmobilesex.me
  106. Pingback: mcat cars 125
  107. Pingback: how to use a vibrator
  108. Pingback: travellergram
  109. Pingback: best sex toy
  110. Pingback: ben wa balls
  111. Pingback: sexawy
  112. Pingback: FS19 mods
  113. Pingback: porn stories
  114. Pingback: سكس مترجم
  115. Pingback: Dolce and Gabbana
  116. Pingback: Jimmy Choo
  117. Pingback: Givenchy
  118. Pingback: Parfum vergelijken
  119. Pingback: W88Thai
  120. Pingback: adult
  121. Pingback: youtube to mp4
  122. Pingback: ww88
  123. Pingback: sex toys
  124. Pingback: male sex toys
  125. Pingback: masturbators
  126. Pingback: computer-arts.info
  127. Pingback: SMT reflow oven
  128. Pingback: htfm65wc
  129. Pingback: Print posters in UK
  130. Pingback: reflow oven
  131. Pingback: solars.biz
  132. Pingback: flyer distribution
  133. Pingback: HSSC Admit Card
  134. Pingback: hybrid mail
  135. Pingback: Moving help Virginia
  136. Pingback: evolved dildo
  137. Pingback: kegel balls
  138. Pingback: tema sulla pace
  139. Pingback: Recovery Center
  140. Pingback: otvaracie hodiny
  141. Pingback: Diesel Only the Brave
  142. Pingback: wand vibrator
  143. Pingback: dildo
  144. Pingback: 2018-2019
  145. Pingback: 2019
  146. Pingback: cleantalkorg2.ru
  147. Pingback: a2019-2020
  148. Pingback: facebook
  149. Pingback: facebook1
  150. Pingback: Popstar
  151. Pingback: dildo
  152. Pingback: web designer new york
  153. Pingback: Azzaro Men
  154. Pingback: javsearch.mobi
  155. Pingback: Bezzerwizzer
  156. Pingback: Hegemony
  157. Pingback: vibrators for women
  158. Pingback: whopper dong
  159. Pingback: rabbit vibrator
  160. Pingback: pillow for neck pain
  161. Pingback: субтильное
  162. Pingback: silicone vibrator
  163. Pingback: bbw strapon
  164. Pingback: most realistic dildo
  165. Pingback: Business Exchange
  166. Pingback: destiny carries
  167. Pingback: פורום סקס
  168. Pingback: i-phone cases
  169. Pingback: important link
  170. Pingback: sito internet
  171. Pingback: sexleketøy
  172. Pingback: Smo-King
  173. Pingback: Adult dating in india
  174. Pingback: Take my online class
  175. Pingback: strap on dildo
  176. Pingback: cyber security
  177. Pingback: easy insurance
  178. Pingback: movers companies
  179. Pingback: rent no credit
  180. Pingback: latest punjabi news
  181. Pingback: luxury nails prices
  182. Pingback: entrepreneur meaning
  183. Pingback: http://sexlive.ltd
  184. Pingback: msn hotmail login
  185. Pingback: ev nx300zbsvus
  186. Pingback: casti de copiat
  187. Pingback: Sexy live chat
  188. Pingback: Hip hop gossip
  189. Pingback: Tyga taste
  190. Pingback: cheap yeti tumbler
  191. Pingback: Hot live females
  192. Pingback: Hot live
  193. Pingback: Free adult sex
  194. Pingback: Utoptens
  195. Pingback: Funny Instagram
  196. Pingback: Free chat
  197. Pingback: Abs
  198. Pingback: hot girls live
  199. Pingback: sexy cams live
  200. Pingback: Threatpost
  201. Pingback: off page seo
  202. Pingback: Funny memes
  203. Pingback: Hip hop funny
  204. Pingback: Hotel Shuttle
  205. Pingback: Hot rap song
  206. Pingback: Comedy Hip hop
  207. Pingback: juicy chat
  208. Pingback: 918kiss
  209. Pingback: Asd hot webcam chat
  210. Pingback: Hot rap mixtape
  211. Pingback: tiling in Richmond
  212. Pingback: cam chat
  213. Pingback: girl chat
  214. Pingback: Sexy girls
  215. Pingback: Mobile erotic chat
  216. Pingback: anonymous
  217. Pingback: custom apparel
  218. Pingback: wunderino
  219. Pingback: new wand vibrator
  220. Pingback: real estate expert
  221. Pingback: visitor management
  222. Pingback: firstanalquest
  223. Pingback: sexy gaming Chat
  224. Pingback: sweet Sofia cam
  225. Pingback: amortization schedule
  226. Pingback: Tory Burch
  227. Pingback: Hot webcam
  228. Pingback: funny hip hop
  229. Pingback: hot hunk sexy
  230. Pingback: 海外新闻发布
  231. Pingback: Guitar
  232. Pingback: free music
  233. Pingback: Sports Betting
  234. Pingback: clothing
  235. Pingback: Brunette chat
  236. Pingback: 라이브딜러
  237. Pingback: prostate vibrator
  238. Pingback: 안전놀이터
  239. Pingback: 캐쉬백
  240. Pingback: polythene sheeting
  241. Pingback: Donald Trump
  242. Pingback: fake id maker
  243. Pingback: 토토사이트
  244. Pingback: marble flooring
  245. Pingback: #AbsoluteENT
  246. Pingback: #NewMusic
  247. Pingback: Alufenster
  248. Pingback: viagra store near me
  249. Pingback: Pruebas guardia civil
  250. Pingback: 먹튀검증
  251. Pingback: buy 3mmc
  252. Pingback: ios IPA Library hacks
  253. Pingback: 高质量外链
  254. Pingback: 사다리사이트
  255. Pingback: 안전공원
  256. Pingback: mens pleasure toys
  257. Pingback: dentist in palm beach
  258. Pingback: silicone butt beads
  259. Pingback: vps server
  260. Pingback: big vibrating dildo
  261. Pingback: beginner butt plug
  262. Pingback: visqueen sheeting
  263. Pingback: nordsee büsum
  264. Pingback: visqueen
  265. Pingback: Viagra great britain
  266. Pingback: Viagra generika

发表评论