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

火币/币安/欧易OKEX交易所系统开发详细逻辑及方案

2023-03-07 16:04 作者:bili_16249894763  | 我要投稿

  There are various trading modes in the exchange,and most of the various trading modes in the digital currency trading platform are used for matchmaking.To put it bluntly,matchmaking transaction usually refers to the transaction rules that the seller entrusts the sales order in the trading center and the buyer entrusts the purchase order in the trading center.The trading center confirms the transaction price of both parties according to the principle of price priority and time priority,and carries out physical delivery according to the delivery warehouse specified in the delivery order.


 

  执行量化


  执行的入口函数是runQuantizeModel


  void Calibration::runQuantizeModel(){


  if(_featureQuantizeMethod=="KL"){


  _computeFeatureScaleKL();


  }else if(_featureQuantizeMethod=="ADMM"){


  _computeFeatureScaleADMM();


  }


  if(_debug){


  _computeQuantError();


  }开发详情I35源码7O98开发O7I8


  _updateScale();


  //对于不支持量化的算子,对其输入进行逆量化成float32数据,对其输出,如果下面的算子需要量化,则将输出量化


  _insertDequantize();


  }


  计算最有阈值


  以KL量化方法为例,看_computeFeatureScaleKL函数。


  void Calibration::_computeFeatureScaleKL(){


  //统计每个通道上数据的分布直方图


  _computeFeatureMapsRange();


  _collectFeatureMapsDistribution();


  _scales.clear();源码及案例:MrsFu123


  for(auto&iter:_featureInfo){


  AUTOTIME;


  _scales[iter.first]=iter.second->finishAndCompute();


  }


  //_featureInfo.clear();//No need now


  }


火币/币安/欧易OKEX交易所系统开发详细逻辑及方案的评论 (共 条)

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