欢迎光临散文网 会员登陆 & 注册

FDF循环互助智能合约游戏系统开发(开发案例)及源码

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

  Web2.0架构由前端、后端、数据库等组件组成。同样的,Web3.0架构也可以类似地分为前端、后端、数据库,区别在于DApps前端架构主要专注于与智能合约(去中心化程序)的通信,后端逻辑通过智能合约实现,然后部署到共享状态机(也就是区块链网络),不需要集中式数据库或Web服务器,而是可以利用区块链在计算机网络之间分发应用程序。


  void TensorStatistic::updateRange(){


  //根据输入计算结果,得到特征图每个通道的最大最小值


  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;


  }案例开发设计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;){开发方案及源码:yy625019


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


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


  }


  mRangePerChannel[cIndex].first=minValue;


  mRangePerChannel[cIndex].second=maxValue;


  }


  }


  mVisited=true;


  }


FDF循环互助智能合约游戏系统开发(开发案例)及源码的评论 (共 条)

分享到微博请遵守国家法律