forked from mindspore-Ecosystem/mindspore
move common head file to include/common
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
This commit is contained in:
parent
5c9e9861fc
commit
c3301787a0
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "common/expander/core/emitter.h"
|
||||
#include "include/common/expander/core/emitter.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "common/expander/core/infer.h"
|
||||
#include "include/common/expander/core/infer.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include "abstract/ops/primitive_infer_map.h"
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "common/expander/core/node.h"
|
||||
#include "include/common/expander/core/node.h"
|
||||
#include <algorithm>
|
||||
#include "common/expander/core/emitter.h"
|
||||
#include "common/expander/core/infer.h"
|
||||
#include "include/common/expander/core/emitter.h"
|
||||
#include "include/common/expander/core/infer.h"
|
||||
|
||||
namespace mindspore {
|
||||
namespace expander {
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
#include "ops/core_ops.h"
|
||||
#include "ops/shape_calc.h"
|
||||
#include "include/common/utils/utils.h"
|
||||
#include "common/expander/core/node.h"
|
||||
#include "common/expander/core/infer.h"
|
||||
#include "include/common/expander/core/node.h"
|
||||
#include "include/common/expander/core/infer.h"
|
||||
|
||||
namespace mindspore {
|
||||
namespace expander {
|
|
@ -17,7 +17,7 @@
|
|||
#ifndef MINDSPORE_CCSRC_COMMON_EXPANDER_CORE_INFER_H_
|
||||
#define MINDSPORE_CCSRC_COMMON_EXPANDER_CORE_INFER_H_
|
||||
#include <memory>
|
||||
#include "common/expander/core/node.h"
|
||||
#include "include/common/expander/core/node.h"
|
||||
|
||||
namespace mindspore {
|
||||
namespace expander {
|
|
@ -46,7 +46,7 @@ class COMMON_EXPORT DynamicObfuscator {
|
|||
CNodePtr RandomSeedModeControl(const FuncGraphPtr func_graph);
|
||||
CNodePtr CustomOpModeControl(const FuncGraphPtr func_graph, const AnfNodePtr &prev_node);
|
||||
|
||||
bool IsTarget(std::string &cnode_name);
|
||||
bool IsTarget(const std::string &cnode_name);
|
||||
void UpdateDict(const AnfNodePtr &node, const bool isParent);
|
||||
void CheckDuplicatedParent(const AnfNodePtr &node);
|
||||
CNodePtr CheckInputNodes(const CNodePtr &node);
|
|
@ -68,8 +68,8 @@
|
|||
#include "runtime/pynative/op_executor.h"
|
||||
#include "runtime/device/stream_synchronizer.h"
|
||||
#include "distributed/collective/collective_manager.h"
|
||||
#include "mindspore/ccsrc/utils/dynamic_obfuscation/dynamic_obfuscation.h"
|
||||
#include "mindspore/ccsrc/utils/dynamic_obfuscation/registry_opaque_predicate.h"
|
||||
#include "include/common/utils/dynamic_obfuscation/dynamic_obfuscation.h"
|
||||
#include "include/common/utils/dynamic_obfuscation/registry_opaque_predicate.h"
|
||||
#include "mindspore/ccsrc/plugin/device/cpu/kernel/pyexecute/py_execute_cpu_kernel.h"
|
||||
#include "distributed/init.h"
|
||||
#include "profiler/device/profiling.h"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <algorithm>
|
||||
#include <queue>
|
||||
#include <set>
|
||||
#include "common/expander/core/infer.h"
|
||||
#include "include/common/expander/core/infer.h"
|
||||
#include "utils/anf_utils.h"
|
||||
#include "include/common/debug/anf_ir_dump.h"
|
||||
#include "include/common/utils/python_adapter.h"
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
#include <map>
|
||||
#include <functional>
|
||||
|
||||
#include "common/expander/core/node.h"
|
||||
#include "common/expander/core/emitter.h"
|
||||
#include "include/common/expander/core/node.h"
|
||||
#include "include/common/expander/core/emitter.h"
|
||||
#include "utils/hash_map.h"
|
||||
|
||||
namespace mindspore {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <vector>
|
||||
#include <utility>
|
||||
#include <set>
|
||||
#include "common/expander/core/node.h"
|
||||
#include "include/common/expander/core/node.h"
|
||||
#include "pipeline/pynative/grad/bprop_expander/bprop_irbuilder.h"
|
||||
|
||||
namespace mindspore::expander::bprop {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <utility>
|
||||
#include <algorithm>
|
||||
#include "plugin/device/cpu/hal/device/cpu_device_address.h"
|
||||
#include "mindspore/ccsrc/utils/dynamic_obfuscation/registry_opaque_predicate.h"
|
||||
#include "include/common/utils/dynamic_obfuscation/registry_opaque_predicate.h"
|
||||
|
||||
namespace mindspore {
|
||||
namespace kernel {
|
||||
|
|
|
@ -13,14 +13,14 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "utils/dynamic_obfuscation/dynamic_obfuscation.h"
|
||||
#include "include/common/utils/dynamic_obfuscation/dynamic_obfuscation.h"
|
||||
#include <cstdlib>
|
||||
#include <algorithm>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
#include <random>
|
||||
#include "utils/dynamic_obfuscation/registry_opaque_predicate.h"
|
||||
#include "include/common/utils/dynamic_obfuscation/registry_opaque_predicate.h"
|
||||
#include "include/common/debug/anf_ir_dump.h"
|
||||
#include "utils/info.h"
|
||||
#include "include/common/utils/utils.h"
|
||||
|
@ -544,7 +544,7 @@ void DynamicObfuscator::CheckDuplicatedParent(const AnfNodePtr &node) {
|
|||
}
|
||||
}
|
||||
|
||||
bool DynamicObfuscator::IsTarget(std::string &cnode_name) {
|
||||
bool DynamicObfuscator::IsTarget(const std::string &cnode_name) {
|
||||
if (cnode_name.empty()) {
|
||||
MS_LOG(WARNING) << "CNode name is empty.";
|
||||
return false;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "mindspore/ccsrc/utils/dynamic_obfuscation/registry_opaque_predicate.h"
|
||||
#include "include/common/utils/dynamic_obfuscation/registry_opaque_predicate.h"
|
||||
#include <algorithm>
|
||||
#include "utils/info.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue