Skip to content

Commit

Permalink
避免quantization在缺少oneflow模块的时候出错.
Browse files Browse the repository at this point in the history
  • Loading branch information
is committed Apr 21, 2023
1 parent f6636b7 commit 952ae59
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 952ae59

Please sign in to comment.