forked from mindspore-Ecosystem/mindspore
!28825 code check fix
Merge pull request !28825 from cjh9368/clean_static_error_master
This commit is contained in:
commit
7846a3dadf
|
@ -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, ¶meter);
|
||||
if (ret != lite::RET_OK) {
|
||||
MS_LOG(ERROR) << cnode->fullname_with_scope() << " FetchOpParameterFromNode failed. ";
|
||||
|
|
|
@ -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``
|
||||
|
|
Loading…
Reference in New Issue