欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

TensorFlow中如何實(shí)現(xiàn)權(quán)重的隨機(jī)初始化-創(chuàng)新互聯(lián)

這篇文章主要介紹了TensorFlow中如何實(shí)現(xiàn)權(quán)重的隨機(jī)初始化,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。

創(chuàng)新互聯(lián)自2013年創(chuàng)立以來,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項目網(wǎng)站設(shè)計制作、成都做網(wǎng)站網(wǎng)站策劃,項目實(shí)施與項目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元寧鄉(xiāng)做網(wǎng)站,已為上家服務(wù),為寧鄉(xiāng)各地企業(yè)和個人服務(wù),聯(lián)系電話:18982081108

一開始沒看懂stddev是什么參數(shù),找了一下,在tensorflow/python/ops里有random_ops,其中是這么寫的:

def random_normal(shape, mean=0.0, stddev=1.0, dtype=types.float32,
         seed=None, name=None):
 """Outputs random values from a normal distribution.

 Args:
  shape: A 1-D integer Tensor or Python array. The shape of the output tensor.
  mean: A 0-D Tensor or Python value of type `dtype`. The mean of the normal
   distribution.
  stddev: A 0-D Tensor or Python value of type `dtype`. The standard deviation
   of the normal distribution.
  dtype: The type of the output.
  seed: A Python integer. Used to create a random seed for the distribution.
   See
   [`set_random_seed`](../../api_docs/python/constant_op.md#set_random_seed)
   for behavior.
  name: A name for the operation (optional).

 Returns:
  A tensor of the specified shape filled with random normal values.
 """

也就是按照正態(tài)分布初始化權(quán)重,mean是正態(tài)分布的平均值,stddev是正態(tài)分布的標(biāo)準(zhǔn)差(standard deviation),seed是作為分布的random seed(隨機(jī)種子,我百度了一下,跟什么偽隨機(jī)數(shù)發(fā)生器還有關(guān),就是產(chǎn)生隨機(jī)數(shù)的),在mnist/concolutional中seed賦值為66478,挺有意思,不知道是什么原理。

后面還有truncated_normal的定義:

def truncated_normal(shape, mean=0.0, stddev=1.0, dtype=types.float32,
           seed=None, name=None):
 """Outputs random values from a truncated normal distribution.

 The generated values follow a normal distribution with specified mean and
 standard deviation, except that values whose magnitude is more than 2 standard
 deviations from the mean are dropped and re-picked.

 Args:
  shape: A 1-D integer Tensor or Python array. The shape of the output tensor.
  mean: A 0-D Tensor or Python value of type `dtype`. The mean of the
   truncated normal distribution.
  stddev: A 0-D Tensor or Python value of type `dtype`. The standard deviation
   of the truncated normal distribution.
  dtype: The type of the output.
  seed: A Python integer. Used to create a random seed for the distribution.
   See
   [`set_random_seed`](../../api_docs/python/constant_op.md#set_random_seed)
   for behavior.
  name: A name for the operation (optional).

 Returns:
  A tensor of the specified shape filled with random truncated normal values.
 """

截斷正態(tài)分布,以前都沒聽說過。

TensorFlow還提供了平均分布等。

感謝你能夠認(rèn)真閱讀完這篇文章,希望小編分享的“TensorFlow中如何實(shí)現(xiàn)權(quán)重的隨機(jī)初始化”這篇文章對大家有幫助,同時也希望大家多多支持創(chuàng)新互聯(lián)成都網(wǎng)站設(shè)計公司,關(guān)注創(chuàng)新互聯(lián)成都網(wǎng)站設(shè)計公司行業(yè)資訊頻道,更多相關(guān)知識等著你來學(xué)習(xí)!

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、網(wǎng)站設(shè)計器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

分享標(biāo)題:TensorFlow中如何實(shí)現(xiàn)權(quán)重的隨機(jī)初始化-創(chuàng)新互聯(lián)
當(dāng)前URL:http://www.aaarwkj.com/article10/hcpdo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供面包屑導(dǎo)航、微信小程序、品牌網(wǎng)站制作、網(wǎng)站維護(hù)、關(guān)鍵詞優(yōu)化、搜索引擎優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

營銷型網(wǎng)站建設(shè)
日本久久在线观看视频| 国产精品一区二在线观看| 亚洲国产欧美精品综合在线| 亚洲色图熟女激情另类| 国产性生活大片免费看| 国产精品三级高清在线| 日韩欧美国产亚洲在线| 国产区av中文字幕在线观看| 日本福利一区二区三区| 欧美三级视频一区二区三区| 2004年亚洲中文字幕| 亚洲激情自拍偷拍视频| 日韩无码一区二区视频| 色哟哟网站在线精品视频| 成人精品淫片一级免费 | 青青草原在线免费视频| 国产日韩手机在线不卡视频| 亚洲综合色日本日b网| 国产原创剧情免费观看av| 国产精品精品久久久久久| 欧洲精品久久久久久| 亚洲国产欲色有一二欲色| 三级国产大片在线观看| 久久国产精品亚洲熟女66r| 欧美午夜一区二区电影| 亚洲七七久久精品中文国产| 亚洲一区二区精品免费视频| 青青草国产成人自拍视频在线观看| 先锋影音女同中文字幕| 97在线视频这里只有精品| 国产成人精品免费视频大| 亚洲国产日本一区自拍| 日韩经典三级精品自拍| 久久尤物av天堂日日综合| 国产高清在线不卡一区| 91香蕉国产在线观看| 中文字幕日韩欧美一区二区| 久久国产成人精品免费看| 中午字幕人妻少妇久久| 久久这里只有精品蜜桃| 久久婷婷国产综合精品青草|