!28825 code check fix

Merge pull request !28825 from cjh9368/clean_static_error_master
This commit is contained in:
i-robot 2022-01-12 01:53:39 +00:00 committed by Gitee
commit 7846a3dadf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1 additions and 2 deletions

View File

@ -525,7 +525,7 @@ int FetchOpParameterFromFuncGraph(const FuncGraphPtr &func_graph, std::map<std::
continue;
}
auto primitive = cnode->input(0);
OpParameter *parameter;
OpParameter *parameter = nullptr;
auto ret = lite::FetchOpParameterFromNode(primitive, &parameter);
if (ret != lite::RET_OK) {
MS_LOG(ERROR) << cnode->fullname_with_scope() << " FetchOpParameterFromNode failed. ";

View File

@ -888,7 +888,6 @@ class Conv2dBnFoldQuant(Cell):
ValueError: If `in_channels`, `out_channels`, `kernel_size`, `stride` or `dilation` is less than 1.
ValueError: If `padding` is less than 0.
ValueError: If `pad_mode` is not one of 'same', 'valid', 'pad'.
ValueError: If `device_target` in context is neither `Ascend` nor `GPU`.
Supported Platforms:
``Ascend`` ``GPU``