Skip to content

Commit

Permalink
Fix Critical Failure of Dispatcher (#43)
Browse files Browse the repository at this point in the history
上一次对Dispatcher修改导致参数传递错误,所有Shape算子的调度平台出现错误。这个commit将会修复这些错误。
  • Loading branch information
ZhangZhiPku committed Mar 30, 2022
1 parent 6c71adb commit 98553f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppq/api/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ def dispatch_graph(graph: BaseGraph, platform: TargetPlatform, setting: Quantiza

dispatching_table = dispatcher.dispatch(
graph=graph, quant_types=quant_types,
quant_platform=quantizer.target_platform,
fp32_platform=quantizer.default_platform,
quant_platform=TargetPlatform.UNSPECIFIED, # MUST BE UNSPECIFIED, 这里的意思是交由 Quantizer 决定是否量化这个算子
fp32_platform=TargetPlatform.FP32,
SOI_platform=TargetPlatform.SHAPE_OR_INDEX)

# override dispatching result with setting
Expand Down

0 comments on commit 98553f7

Please sign in to comment.