Skip to content

Commit

Permalink
[POT] Add quantization templates to wheel (#10557)
Browse files Browse the repository at this point in the history
  • Loading branch information
l-bat authored Feb 22, 2022
1 parent 33062be commit 1891967
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/pot/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ def run(self):
# install requires
self.do_egg_install()

def_quant_path = os.path.join("configs", "default_quantization_template.json")
aa_quant_path = os.path.join("configs", "accuracy_aware_quantization_template.json")
copyfile(def_quant_path, os.path.join(self.install_purelib, prefix, "pot", def_quant_path))
copyfile(aa_quant_path, os.path.join(self.install_purelib, prefix, "pot", aa_quant_path))

version_txt = os.path.join(prefix, "pot", "version.txt")
if os.path.exists(version_txt):
copyfile(os.path.join(version_txt),
Expand Down

0 comments on commit 1891967

Please sign in to comment.