diff --git a/CMakeLists.txt b/CMakeLists.txt index dca7dcc5cc0fa5ca60d8f4ef8c2eeba767065e93..b753bd0a3c54b79729422afaa6101b4629ea8d0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -619,14 +619,14 @@ elseif(TARGET _xxx) add_custom_target( develop COMMAND ${CMAKE_COMMAND} -E create_symlink - ${CMAKE_CURRENT_BINARY_DIR}/imperative/python/${PACKAGE_NAME}/$ - ${CMAKE_CURRENT_SOURCE_DIR}/imperative/python/${PACKAGE_NAME}/$ + ${CMAKE_CURRENT_BINARY_DIR}/imperative/python/${PACKAGE_NAME}/core/$ + ${CMAKE_CURRENT_SOURCE_DIR}/imperative/python/${PACKAGE_NAME}/core/$ COMMAND ${CMAKE_COMMAND} -E create_symlink - ${CMAKE_CURRENT_BINARY_DIR}/imperative/python/${PACKAGE_NAME}/ops/_internal/generated_ops.py - ${CMAKE_CURRENT_SOURCE_DIR}/imperative/python/${PACKAGE_NAME}/ops/_internal/generated_ops.py + ${CMAKE_CURRENT_BINARY_DIR}/imperative/python/${PACKAGE_NAME}/core/ops/_internal/generated_ops.py + ${CMAKE_CURRENT_SOURCE_DIR}/imperative/python/${PACKAGE_NAME}/core/ops/_internal/generated_ops.py COMMAND ${CMAKE_COMMAND} -E create_symlink - ${CMAKE_CURRENT_BINARY_DIR}/imperative/python/${PACKAGE_NAME}/ops/_internal/param_defs.py - ${CMAKE_CURRENT_SOURCE_DIR}/imperative/python/${PACKAGE_NAME}/ops/_internal/param_defs.py + ${CMAKE_CURRENT_BINARY_DIR}/imperative/python/${PACKAGE_NAME}/core/ops/_internal/param_defs.py + ${CMAKE_CURRENT_SOURCE_DIR}/imperative/python/${PACKAGE_NAME}/core/ops/_internal/param_defs.py DEPENDS _xxx VERBATIM ) diff --git a/dnn/scripts/gen_param_defs.py b/dnn/scripts/gen_param_defs.py index a48f3df70a11685f0a746489e2e3a6460e40eae7..8c0949a2508e553224a31b52ab46e9ba367f3e0c 100755 --- a/dnn/scripts/gen_param_defs.py +++ b/dnn/scripts/gen_param_defs.py @@ -359,14 +359,14 @@ class PyWriter(IndentWriterBase): else: self._write( 'def _as_dtype_num(dtype):\n' - ' import xxx._xxx.utils as m\n' + ' import megengine.core._xxx.utils as m\n' ' return m._get_dtype_num(dtype)\n' '\n' ) self._write( 'def _as_serialized_dtype(dtype):\n' - ' import xxx._xxx.utils as m\n' + ' import megengine.core._xxx.utils as m\n' ' return m._get_serialized_dtype(dtype)\n' '\n' )