无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

FDF循環(huán)互助智能合約游戲系統(tǒng)開發(fā)(開發(fā)案例)及源碼

2023-03-07 16:41 作者:bili_33032327742  | 我要投稿

  Web2.0架構(gòu)由前端、后端、數(shù)據(jù)庫等組件組成。同樣的,Web3.0架構(gòu)也可以類似地分為前端、后端、數(shù)據(jù)庫,區(qū)別在于DApps前端架構(gòu)主要專注于與智能合約(去中心化程序)的通信,后端邏輯通過智能合約實現(xiàn),然后部署到共享狀態(tài)機(也就是區(qū)塊鏈網(wǎng)絡(luò)),不需要集中式數(shù)據(jù)庫或Web服務(wù)器,而是可以利用區(qū)塊鏈在計算機網(wǎng)絡(luò)之間分發(fā)應(yīng)用程序。


  void TensorStatistic::updateRange(){


  //根據(jù)輸入計算結(jié)果,得到特征圖每個通道的最大最小值


  if(mUpdatedRangeFlags){


  return;


  }


  mUpdatedRangeFlags=true;


  mOriginTensor->copyToHostTensor(mHostTensor.get());


  int batch=mHostTensor->batch();


  int channel=mHostTensor->channel();


  int width=mHostTensor->width();


  int height=mHostTensor->height();


  auto area=width*height;


  for(int n=0;n<batch;++n){


  auto dataBatch=mHostTensor->host<float>()+n*mHostTensor->stride(0);


  for(int c=0;c<channel;++c){


  int cIndex=c;


  if(mMergeChannel){


  cIndex=0;


  }案例開發(fā)設(shè)計I59分析2OO7詳情3O69


  auto minValue=mRangePerChannel[cIndex].first;


  auto maxValue=mRangePerChannel[cIndex].second;


  auto dataChannel=dataBatch+c*mHostTensor->stride(1);


  for(int v=0;v<area;){開發(fā)方案及源碼:yy625019


  minValue=std::min(minValue,dataChannel[v]);


  maxValue=std::max(maxValue,dataChannel[v]);


  }


  mRangePerChannel[cIndex].first=minValue;


  mRangePerChannel[cIndex].second=maxValue;


  }


  }


  mVisited=true;


  }


FDF循環(huán)互助智能合約游戲系統(tǒng)開發(fā)(開發(fā)案例)及源碼的評論 (共 條)

分享到微博請遵守國家法律
阿拉善左旗| 阿瓦提县| 上饶县| 荃湾区| 德格县| 中卫市| 芜湖县| 临泽县| 宜宾市| 巴青县| 启东市| 平邑县| 建德市| 黔西县| 宁海县| 正定县| 阿克| 奎屯市| 丰宁| 金沙县| 建湖县| 大石桥市| 翁牛特旗| 竹溪县| 建瓯市| 治县。| 信丰县| 武强县| 凤庆县| 丹江口市| 桃园市| 乐平市| 二手房| 安康市| 桂林市| 梅河口市| 巩留县| 平顶山市| 于都县| 于田县| 孝感市|