提交 50fec7cd 编写于 作者: L liubuyu

add FAQ for slog

上级 2f93e828
...@@ -191,6 +191,12 @@ A: Currently, the PyNative mode supports only Ascend and GPU and does not suppor ...@@ -191,6 +191,12 @@ A: Currently, the PyNative mode supports only Ascend and GPU and does not suppor
<br/> <br/>
Q: For Ascend users, how to get more detailed logs when the `run time error` is reported?
A: More detailed logs info can be obtained by modify slog config file. You can get different level by modify `/var/log/npu/conf/slog/slog.conf`. The values are as follows: 0:debug、1:info、2:warning、3:error、4:null(no output log), default 1.
<br/>
Q: What can I do if the error message `Pynative run op ExpandDims failed` is displayed when the ExpandDims operator is used? The code is as follows: Q: What can I do if the error message `Pynative run op ExpandDims failed` is displayed when the ExpandDims operator is used? The code is as follows:
```python ```python
......
...@@ -223,6 +223,12 @@ A:pynative 模式目前只支持Ascend和GPU,暂时还不支持CPU。 ...@@ -223,6 +223,12 @@ A:pynative 模式目前只支持Ascend和GPU,暂时还不支持CPU。
<br/> <br/>
Q:在Ascend平台上,执行用例有时候会报错run time error,如何获取更详细的日志帮助问题定位?
A:可以通过开启slog获取更详细的日志信息以便于问题定位,修改`/var/log/npu/conf/slog/slog.conf`中的配置,可以控制不同的日志级别,对应关系为:0:debug、1:info、2:warning、3:error、4:null(no output log),默认值为1。
<br/>
Q:使用ExpandDims算子报错:`Pynative run op ExpandDims failed`。具体代码: Q:使用ExpandDims算子报错:`Pynative run op ExpandDims failed`。具体代码:
```python ```python
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册