五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

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

智能合約互助游戲系統(tǒng)開發(fā)(FDF互助游戲開發(fā))丨FDF互助游戲系統(tǒng)源碼案例

2023-03-07 17:01 作者:bili_33032327742  | 我要投稿

  什么是Web 3.0技術(shù)?


  1.分布式計算


  Web 3.0技術(shù)可以利用分布式計算在去中心化網(wǎng)絡(luò)上實現(xiàn)大規(guī)模協(xié)作和計算。這可用于各種應(yīng)用,例如科學(xué)研究、機器學(xué)習(xí)和游戲。


  2.加密貨幣


  加密貨幣是可以用作交換媒介、價值存儲或記賬單位的數(shù)字資產(chǎn)。它們基于區(qū)塊鏈,可用于在不需要中間人的情況下使交易安全高效。


  3.智能合約


  智能合約是在區(qū)塊鏈上編碼的自動執(zhí)行合約。它們可以自動執(zhí)行各方之間的協(xié)議,從而可以為供應(yīng)鏈管理、房地產(chǎn)和保險等各種應(yīng)用程序創(chuàng)建更高效、更透明的系統(tǒng)。


  4.Web 3.0瀏覽器


  Web 3.0瀏覽器是專門用于分散式應(yīng)用程序和區(qū)塊鏈網(wǎng)絡(luò)的瀏覽器。它們使訪問社交網(wǎng)絡(luò)、游戲應(yīng)用程序和去中心化金融(DeFi)平臺等Web 3.0技術(shù)并與之交互變得容易。


  Calibration::Calibration(MNN::NetT*model,const uint8_t*modelBuffer,const int bufferSize,const std::string&configPath)


  :_originaleModel(model){


  //when the format of input image is RGB/BGR,channels equal to 3,GRAY is 1


  int channles=3;


  //解析量化json配置文件


  rapidjson::Document document;


  {


  std::ifstream fileNames(configPath.c_str());


  std::ostringstream output;


  output<<fileNames.rdbuf();


  auto outputStr=output.str();


  document.Parse(outputStr.c_str());


  if(document.HasParseError()){


  MNN_ERROR("Invalid jsonn");


  return;開發(fā)流程及需求I59原理2OO7開發(fā)3O69


  }


  }


  auto picObj=document.GetObject();


  ImageProcess::Config config;


  config.filterType=BILINEAR;


  config.destFormat=BGR;


  {


  if(picObj.HasMember("format")){


  auto format=picObj["format"].GetString();


  static std::map<std::string,ImageFormat>formatMap{{"BGR",BGR},{"RGB",RGB},{"GRAY",GRAY},{"RGBA",RGBA},{"BGRA",BGRA}};


  if(formatMap.find(format)!=formatMap.end()){


  config.destFormat=formatMap.find(format)->second;


  }


  }


  }需求及方案:MrsFu123


  switch(config.destFormat){


  case GRAY:


  channles=1;


  break;


  case RGB:


  case BGR:


  channles=3;


  break;


  case RGBA:


  case BGRA:


  channles=4;


  break;


  default:


  break;


  }


  if(picObj.HasMember("weight_quantize_method")){


  std::string method=picObj["weight_quantize_method"].GetString();


  if(Helper::weightQuantizeMethod.find(method)!=Helper::weightQuantizeMethod.end()){


  _weightQuantizeMethod=method;


  }else{


  MNN_ERROR("not supported weight quantization method:%sn",method.c_str());


  return;


  }


  }


  DLOG(INFO)<<"Use feature quantization method:"<<_featureQuantizeMethod;


  DLOG(INFO)<<"Use weight quantization method:"<<_weightQuantizeMethod;


  if(picObj.HasMember("feature_clamp_value")){


  float value=(int)picObj["feature_clamp_value"].GetFloat();


  if(value<0.0f||value>127.0f){


  MNN_ERROR("feature_clamp_value should be in(0,127],got:%fn",value);


  return;


  }


  _featureClampValue=value;


  }


  if(picObj.HasMember("weight_clamp_value")){


  float value=(int)picObj["weight_clamp_value"].GetFloat();


  if(value<0.0f||value>127.0f){


  MNN_ERROR("weight_clamp_value should be in(0,127],got:%fn",value);


  return;


  }


  _weightClampValue=value;


  }


  DLOG(INFO)<<"feature_clamp_value:"<<_featureClampValue;


  DLOG(INFO)<<"weight_clamp_value:"<<_weightClampValue;


  if(picObj.HasMember("skip_quant_op_names")){


  auto skip_quant_op_names=picObj["skip_quant_op_names"].GetArray();


  for(auto iter=skip_quant_op_names.begin();iter!=skip_quant_op_names.end();iter++){


  std::string skip_quant_op_name=iter->GetString();


  _skip_quant_ops.emplace_back(skip_quant_op_name);


  DLOG(INFO)<<"skip quant op name:"<<skip_quant_op_name;


  }


  }


  if(picObj.HasMember("debug")){


  _debug=picObj["debug"].GetBool();


  }


  }


  std::shared_ptr<ImageProcess>process(ImageProcess::create(config));


  _process=process;


  //read images file names


  Helper::readImages(_imgaes,imagePath.c_str(),&_imageNum);


  _initMNNSession(modelBuffer,bufferSize,channles);


  _initMaps();


  }


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

分享到微博請遵守國家法律
裕民县| 专栏| 花垣县| 长春市| 金寨县| 鄢陵县| 蒙山县| 新津县| 加查县| 宾川县| 青川县| 车险| 共和县| 留坝县| 泸州市| 罗山县| 杨浦区| 玉龙| 合山市| 昌邑市| 娄底市| 太仓市| 侯马市| 当雄县| 潞城市| 虎林市| 柳江县| 罗田县| 通化县| 蓬安县| 都匀市| 龙岩市| 苍梧县| 五寨县| 瑞昌市| 奉贤区| 巧家县| 雅江县| 罗田县| 成安县| 万源市|