forked from mindspore-Ecosystem/mindspore
code check clean
This commit is contained in:
parent
16587dc343
commit
85288f9d75
|
@ -445,7 +445,7 @@ ValueNodePtr KernelGraph::NewValueNode(const ValueNodePtr &value_node) const {
|
|||
return new_value_node;
|
||||
}
|
||||
|
||||
ValueNodePtr KernelGraph::NewValueNode(const AbstractBasePtr &abstract, const ValuePtr &value) {
|
||||
ValueNodePtr KernelGraph::NewValueNode(const AbstractBasePtr &abstract, const ValuePtr &value) const {
|
||||
MS_EXCEPTION_IF_NULL(abstract);
|
||||
MS_EXCEPTION_IF_NULL(value);
|
||||
ValueNodePtr new_value_node = std::make_shared<ValueNode>(value);
|
||||
|
|
|
@ -153,7 +153,7 @@ class BACKEND_EXPORT KernelGraph : public FuncGraph {
|
|||
void ResetAssignInputFeatureMapFlag(const CNodePtr &cnode) const;
|
||||
ParameterPtr NewParameter(const ParameterPtr ¶meter = nullptr);
|
||||
ParameterPtr NewParameter(const abstract::AbstractBasePtr &abstract);
|
||||
ValueNodePtr NewValueNode(const AbstractBasePtr &abstract, const ValuePtr &value);
|
||||
ValueNodePtr NewValueNode(const AbstractBasePtr &abstract, const ValuePtr &value) const;
|
||||
ValueNodePtr NewValueNode(const ValueNodePtr &value_node = nullptr) const;
|
||||
ValueNodePtr NewValueNode(const tensor::TensorPtr &input_tensor);
|
||||
// trans tuple output to maketuple + no_tuple out
|
||||
|
|
|
@ -63,9 +63,9 @@ Status Model::Build(const std::vector<char> &, ModelType, const std::shared_ptr<
|
|||
return kMCFailed;
|
||||
}
|
||||
|
||||
Status Model::Build(const void *model_data, size_t data_size, ModelType model_type,
|
||||
const std::shared_ptr<Context> &model_context, const Key &dec_key,
|
||||
const std::vector<char> &dec_mode, const std::vector<char> &cropto_lib_path) {
|
||||
Status Model::Build(const void * /* model_data */, size_t /* data_size */, ModelType /* model_type */,
|
||||
const std::shared_ptr<Context> & /* model_context */, const Key & /* dec_key */,
|
||||
const std::vector<char> & /* dec_mode */, const std::vector<char> & /* cropto_lib_path */) {
|
||||
MS_LOG(ERROR) << "Unsupported Feature.";
|
||||
return kMCFailed;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* Copyright 2020 Huawei Technologies Co., Ltd
|
||||
* Copyright 2020-2023 Huawei Technologies Co., Ltd
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -24,7 +24,6 @@
|
|||
#include <functional>
|
||||
|
||||
#include "utils/log_adapter.h"
|
||||
#include "utils/os.h"
|
||||
#include "include/common/visible.h"
|
||||
|
||||
#define DP_INFO MS_LOG(INFO) << "[DuplexPipe] "
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 2020-2022 Huawei Technologies Co., Ltd
|
||||
# Copyright 2020-2023 Huawei Technologies Co., Ltd
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
|
|
Loading…
Reference in New Issue