未验证 提交 5b76c867 编写于 作者: Z zhouzj 提交者: GitHub

Fix a variable naming error in LatencyPredictor. (#1324)

上级 9ab90c96
...@@ -95,10 +95,10 @@ class TableLatencyPredictor(LatencyPredictor): ...@@ -95,10 +95,10 @@ class TableLatencyPredictor(LatencyPredictor):
raise NotImplementedError( raise NotImplementedError(
'latency predictor does NOT support running on Windows.') 'latency predictor does NOT support running on Windows.')
elif platform.system().lower() == 'darwin': elif platform.system().lower() == 'darwin':
py_verion = platform.python_version().split('.') py_version = platform.python_version().split('.')
if int(py_version[0]) != 3 or int(py_version[1]) != 9: if int(py_version[0]) != 3 or int(py_version[1]) != 9:
raise NotImplementedError( raise NotImplementedError(
'latency predictor does NOT support running on macOS when python version is not 3.9.' 'Latency predictor does NOT support running on macOS when python version is not 3.9.'
) )
_logger.info("pip install paddleslim-opt-tools") _logger.info("pip install paddleslim-opt-tools")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册