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

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è)
亚洲美女高潮久久久久久久久| 91国内精品手机在线高清| 色婷婷亚洲婷婷亚洲最大| 嫩草网站国产精品一区二| 国产成人免费自拍一区| 中文字幕加勒比东京热| av天堂午夜在线观看| 国产丝袜美腿一二三区| 亚洲av午夜福利麻豆av| 精品一区中文字幕少妇人妻| 国产亚洲欧美日韩精品| 91午夜福利视频鉴赏| 欧美一区二区日韩国产| 偷拍视频一区二区三区| 日韩成人中文字幕电影| 亚洲精品国产熟女av| 91免费在线观看国产精品| 国产91在线精品超碰人人 | 日韩中文在线中文网三级| 日韩精品视频性色首页| 亚洲精品一品区二品区三| 香港精品国产三级国产av | 国产激情一区二区三区| 日韩一区二区电影在线| 久久精品成人无码观看56| 久久久久久国产精品亚洲| 色综合天天综合天天更新| 日本理论高清在线观看| 日韩伦理高清在线观看| 好吊妞在线新免费视频| 日韩欧美国产精品一区二区| 麻豆人妻性色av专区| 人妻少妇久久中文字幕久久| 青青草免费视频观看在线| 亚洲国产日韩欧美在线| 啄木乌欧美一区二区三| 外国男人搞亚洲女人在线| 国产丰满熟女视频免费| 中文字幕成人乱码亚洲| 日韩精选视频在线播放| 九九蜜桃视频香蕉视频|