Browse Source

!15482 [PyNative]fix pclint warning

From: @chenyijie6
Reviewed-by: @wilfchen,@cristoval
Signed-off-by: @cristoval
pull/15482/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
a9ad992e43
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      mindspore/ccsrc/pipeline/pynative/pynative_execute.cc
  2. +1
    -1
      mindspore/ccsrc/pipeline/pynative/pynative_execute.h

+ 1
- 1
mindspore/ccsrc/pipeline/pynative/pynative_execute.cc View File

@@ -709,7 +709,7 @@ OpExecInfoPtr ForwardExecutor::GenerateOpExecInfo(const py::args &args) {
return op_exec_info;
}

bool ForwardExecutor::FindOpMask(py::object obj, std::vector<int64_t> *op_masks, std::string id) {
bool ForwardExecutor::FindOpMask(py::object obj, std::vector<int64_t> *op_masks, const std::string &id) {
bool op_mask = false;
auto temp = op_mask_map_.find(id);
if (temp != op_mask_map_.end()) {


+ 1
- 1
mindspore/ccsrc/pipeline/pynative/pynative_execute.h View File

@@ -406,7 +406,7 @@ class ForwardExecutor {
PynativeStatusCode *status);
AnfNodePtr MakeCNode(const OpExecInfoPtr &op_exec_info, std::vector<int64_t> *op_masks,
abstract::AbstractBasePtrList *args_spec_list);
bool FindOpMask(py::object obj, std::vector<int64_t> *op_masks, std::string id);
bool FindOpMask(py::object obj, std::vector<int64_t> *op_masks, const std::string &id);
void GetArgsSpec(const OpExecInfoPtr &op_exec_info, std::vector<int64_t> *op_masks, std::vector<AnfNodePtr> *inputs,
abstract::AbstractBasePtrList *args_spec_list);
abstract::AbstractBasePtr CheckConstValue(const PrimitivePyPtr &prim, const py::object &obj,


Loading…
Cancel
Save