forked from mindspore-Ecosystem/mindspore
mv cc file that end with py to pybind
This commit is contained in:
parent
13c2b23356
commit
45b6600001
|
@ -27,7 +27,7 @@
|
|||
#include "utils/symbolic.h"
|
||||
#include "ir/meta_func_graph.h"
|
||||
#include "ir/param_value.h"
|
||||
#include "utils/tensor_py.h"
|
||||
#include "pybind_api/ir/tensor_py.h"
|
||||
#include "pipeline/jit/parse/python_adapter.h"
|
||||
#include "pipeline/jit/parse/resolve.h"
|
||||
#include "frontend/operator/composite/composite.h"
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include "abstract/abstract_value.h"
|
||||
#include "pipeline/jit/static_analysis/prim.h"
|
||||
#include "abstract/param_validator.h"
|
||||
#include "utils/tensor_py.h"
|
||||
#include "pybind_api/ir/tensor_py.h"
|
||||
#include "frontend/operator/ops.h"
|
||||
#include "abstract/infer_functions.h"
|
||||
namespace mindspore {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <string>
|
||||
#include <utility>
|
||||
#include "ir/anf.h"
|
||||
#include "utils/primitive_py.h"
|
||||
#include "pybind_api/ir/primitive_py.h"
|
||||
#include "ir/meta_func_graph.h"
|
||||
#include "ir/func_graph_cloner.h"
|
||||
#include "ir/manager.h"
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
#include "base/base.h"
|
||||
#include "ir/anf.h"
|
||||
#include "ir/tensor.h"
|
||||
#include "utils/primitive_py.h"
|
||||
#include "utils/tensor_py.h"
|
||||
#include "pybind_api/ir/primitive_py.h"
|
||||
#include "pybind_api/ir/tensor_py.h"
|
||||
|
||||
namespace mindspore {
|
||||
namespace opt {
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include "ir/func_graph.h"
|
||||
#include "ir/manager.h"
|
||||
#include "utils/primitive_py.h"
|
||||
#include "pybind_api/ir/primitive_py.h"
|
||||
#include "pipeline/jit/parse/parse_base.h"
|
||||
#include "pipeline/jit/resource.h"
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include "ir/anf.h"
|
||||
#include "ir/func_graph.h"
|
||||
#include "utils/primitive_py.h"
|
||||
#include "pybind_api/ir/primitive_py.h"
|
||||
#include "ir/graph_utils.h"
|
||||
#include "utils/ms_utils.h"
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include "utils/log_adapter.h"
|
||||
#include "ir/anf.h"
|
||||
#include "utils/primitive_py.h"
|
||||
#include "pybind_api/ir/primitive_py.h"
|
||||
#include "abstract/analysis_context.h"
|
||||
#include "abstract/abstract_function.h"
|
||||
#include "pipeline/jit/parse/parse.h"
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
#include "pybind11/pybind11.h"
|
||||
#include "ir/anf.h"
|
||||
#include "utils/primitive_py.h"
|
||||
#include "pybind_api/ir/primitive_py.h"
|
||||
#include "abstract/abstract_value.h"
|
||||
|
||||
namespace mindspore {
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <algorithm>
|
||||
|
||||
#include "debug/trace.h"
|
||||
#include "utils/tensor_py.h"
|
||||
#include "pybind_api/ir/tensor_py.h"
|
||||
#include "ir/param_value.h"
|
||||
#include "utils/any.h"
|
||||
#include "utils/utils.h"
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include "pipeline/jit/parse/data_converter.h"
|
||||
#include "pipeline/jit/static_analysis/prim.h"
|
||||
#include "backend/session/session_factory.h"
|
||||
#include "utils/tensor_py.h"
|
||||
#include "pybind_api/ir/tensor_py.h"
|
||||
|
||||
const char SINGLE_OP_GRAPH[] = "single_op_graph";
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "utils/primitive_py.h"
|
||||
#include "pybind_api/ir/primitive_py.h"
|
||||
#include <mutex>
|
||||
#include "ir/signature.h"
|
||||
#include "./common.h"
|
||||
|
@ -23,10 +23,10 @@
|
|||
#include "pybind11/pytypes.h"
|
||||
#include "utils/convert_utils_base.h"
|
||||
#include "utils/primitive_utils.h"
|
||||
#include "utils/base_ref_py.h"
|
||||
#include "utils/base_ref_extends.h"
|
||||
#include "pybind_api/api_register.h"
|
||||
#include "pybind_api/export_flags.h"
|
||||
#include "pybind_api/ir/base_ref_py.h"
|
||||
|
||||
namespace mindspore {
|
||||
namespace {
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "utils/tensor_py.h"
|
||||
#include "pybind_api/ir/tensor_py.h"
|
||||
|
||||
#include <functional>
|
||||
#include <numeric>
|
|
@ -19,7 +19,7 @@
|
|||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "utils/base_ref_py.h"
|
||||
#include "pybind_api/ir/base_ref_py.h"
|
||||
#include "base/base_ref.h"
|
||||
|
||||
namespace mindspore {
|
||||
|
|
|
@ -329,7 +329,7 @@ bool FinalizeGe(const std::shared_ptr<MsContext> &ms_context_ptr, bool force) {
|
|||
if (ge::GEFinalize() != ge::GRAPH_SUCCESS) {
|
||||
MS_LOG(WARNING) << "Finalize GE failed!";
|
||||
}
|
||||
ms_context_ptr->set_pynative_ge_init(fasle);
|
||||
ms_context_ptr->set_pynative_ge_init(false);
|
||||
} else {
|
||||
MS_LOG(INFO) << "Ge is used, no need to finalize, tsd reference = " << ms_context_ptr->ge_ref() << ".";
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include "frontend/operator/ops.h"
|
||||
#include "ir/manager.h"
|
||||
#include "ir/func_graph_cloner.h"
|
||||
#include "utils/primitive_py.h"
|
||||
#include "pybind_api/ir/primitive_py.h"
|
||||
#include "utils/convert_utils.h"
|
||||
#include "utils/primitive_utils.h"
|
||||
#include "debug/draw.h"
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include "securec/include/securec.h"
|
||||
#include "ir/tensor.h"
|
||||
#include "utils/tensor_py.h"
|
||||
#include "pybind_api/ir/tensor_py.h"
|
||||
|
||||
using mindspore::tensor::TensorPy;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "common/common_test.h"
|
||||
#include "ir/value.h"
|
||||
#include "utils/primitive_py.h"
|
||||
#include "pybind_api/ir/primitive_py.h"
|
||||
#include "frontend/operator/ops.h"
|
||||
#include "./common.h"
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <memory>
|
||||
#include "common/common_test.h"
|
||||
#include "ir/dtype.h"
|
||||
#include "utils/tensor_py.h"
|
||||
#include "pybind_api/ir/tensor_py.h"
|
||||
#include "transform/transform_base_test.h"
|
||||
#include "common/py_func_graph_fetcher.h"
|
||||
#include "pipeline/jit/static_analysis/static_analysis.h"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <iostream>
|
||||
#include "common/common_test.h"
|
||||
#include "transform/transform_base_test.h"
|
||||
#include "utils/tensor_py.h"
|
||||
#include "pybind_api/ir/tensor_py.h"
|
||||
|
||||
using mindspore::tensor::TensorPy;
|
||||
|
||||
|
|
Loading…
Reference in New Issue