Skip to content

Commit

Permalink
Merge pull request THUDM#128 from makenv/fix-oneflow-quantize
Browse files Browse the repository at this point in the history
避免quantization在缺少oneflow模块的时候出错.
  • Loading branch information
Stanislas0 authored Apr 22, 2023
2 parents e824af4 + 952ae59 commit 494219a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions codegeex/quantization/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from .quantize import quantize
from .quantize_oneflow import quantize_oneflow
from .quantize_oneflow import QuantizedLinear
try:
from .quantize_oneflow import quantize_oneflow
from .quantize_oneflow import QuantizedLinear
except ModuleNotFoundError:
pass

0 comments on commit 494219a

Please sign in to comment.