未验证 提交 5e661982 编写于 作者: L Liufang Sang 提交者: GitHub

fix install for paddle 1.6 (#135)

上级 d3a69326
......@@ -12,5 +12,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from .quanter import quant_aware, quant_post, convert
import logging
import paddle.fluid as fluid
from ..common import get_logger
_logger = get_logger(__name__, level=logging.INFO)
try:
fluid.require_version('1.7.0')
from .quanter import quant_aware, quant_post, convert
except Exception as e:
_logger.warning(
"If you want to use training-aware and post-training quantization, "
"please use Paddle >= 1.7.0 or develop version")
from .quant_embedding import quant_embedding
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册