提交 457a1e01 编写于 作者: M Megvii Engine Team

refactor(imperative): initial merge of xxx and megengine

GitOrigin-RevId: 48a48f5c7f93c3c11c7d2897e8ebfd64694859fc
上级 a808f807
...@@ -619,14 +619,14 @@ elseif(TARGET _xxx) ...@@ -619,14 +619,14 @@ elseif(TARGET _xxx)
add_custom_target( add_custom_target(
develop develop
COMMAND ${CMAKE_COMMAND} -E create_symlink COMMAND ${CMAKE_COMMAND} -E create_symlink
${CMAKE_CURRENT_BINARY_DIR}/imperative/python/${PACKAGE_NAME}/$<TARGET_FILE_NAME:${MODULE_NAME}> ${CMAKE_CURRENT_BINARY_DIR}/imperative/python/${PACKAGE_NAME}/core/$<TARGET_FILE_NAME:${MODULE_NAME}>
${CMAKE_CURRENT_SOURCE_DIR}/imperative/python/${PACKAGE_NAME}/$<TARGET_FILE_NAME:${MODULE_NAME}> ${CMAKE_CURRENT_SOURCE_DIR}/imperative/python/${PACKAGE_NAME}/core/$<TARGET_FILE_NAME:${MODULE_NAME}>
COMMAND ${CMAKE_COMMAND} -E create_symlink COMMAND ${CMAKE_COMMAND} -E create_symlink
${CMAKE_CURRENT_BINARY_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}/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 COMMAND ${CMAKE_COMMAND} -E create_symlink
${CMAKE_CURRENT_BINARY_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}/ops/_internal/param_defs.py ${CMAKE_CURRENT_SOURCE_DIR}/imperative/python/${PACKAGE_NAME}/core/ops/_internal/param_defs.py
DEPENDS _xxx DEPENDS _xxx
VERBATIM VERBATIM
) )
......
...@@ -359,14 +359,14 @@ class PyWriter(IndentWriterBase): ...@@ -359,14 +359,14 @@ class PyWriter(IndentWriterBase):
else: else:
self._write( self._write(
'def _as_dtype_num(dtype):\n' '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' ' return m._get_dtype_num(dtype)\n'
'\n' '\n'
) )
self._write( self._write(
'def _as_serialized_dtype(dtype):\n' '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' ' return m._get_serialized_dtype(dtype)\n'
'\n' '\n'
) )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册