Skip to content
Snippets Groups Projects
Unverified Commit d6c00065 authored by liufengwei0103's avatar liufengwei0103 Committed by GitHub
Browse files

replace underline to dot in single client (#5547)


Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
parent 399c401b
No related branches found
No related tags found
No related merge requests found
Showing
with 72 additions and 73 deletions
......@@ -298,10 +298,9 @@ add_custom_target(of_pyscript_copy ALL
COMMAND rm -rf ${of_pyscript_dir}/oneflow/python
COMMAND rm -rf ${of_pyscript_dir}/oneflow/compatible
COMMAND ${CMAKE_COMMAND} -E create_symlink "${PROJECT_SOURCE_DIR}/oneflow/python" "${of_pyscript_dir}/oneflow/python"
COMMAND ${CMAKE_COMMAND} -E copy_directory "${PROJECT_SOURCE_DIR}/oneflow/compatible_single_client_python" "${of_pyscript_dir}/oneflow/compatible/single_client/python"
COMMAND "${CMAKE_COMMAND}" -E copy
"${PROJECT_SOURCE_DIR}/oneflow/single_client_init.py" "${of_pyscript_dir}/oneflow/compatible/single_client/__init__.py"
COMMAND ${Python_EXECUTABLE} "${PROJECT_SOURCE_DIR}/tools/conver_single_client_name_space.py" "${of_pyscript_dir}/oneflow/compatible"
COMMAND ${CMAKE_COMMAND} -E create_symlink "${PROJECT_SOURCE_DIR}/oneflow/compatible_single_client_python" "${of_pyscript_dir}/oneflow/compatible/single_client/python"
COMMAND ${CMAKE_COMMAND} -E touch "${of_pyscript_dir}/oneflow/compatible/__init__.py"
COMMAND "${CMAKE_COMMAND}" -E copy
"${PROJECT_SOURCE_DIR}/oneflow/single_client_main.py" "${of_pyscript_dir}/oneflow/compatible/single_client/__main__.py"
......
......@@ -20,16 +20,16 @@ from oneflow.compatible.single_client.core.operator import op_conf_pb2 as op_con
from oneflow.compatible.single_client.core.register import (
logical_blob_id_pb2 as logical_blob_id_util,
)
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import (
interpret_util as interpret_util,
)
from oneflow.compatible_single_client_python.framework import id_util as id_util
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import id_util as id_util
from oneflow.compatible.single_client.python.framework import (
remote_blob as remote_blob_util,
)
from oneflow.compatible_single_client_python.framework import hob as hob
from oneflow.compatible_single_client_python.lib.core import enable_if as enable_if
from oneflow.compatible_single_client_python.oneflow_export import oneflow_export
from oneflow.compatible.single_client.python.framework import hob as hob
from oneflow.compatible.single_client.python.lib.core import enable_if as enable_if
from oneflow.compatible.single_client.python.oneflow_export import oneflow_export
from typing import Union, Tuple, List, Optional, Sequence, Callable
import oneflow._oneflow_internal
......
......@@ -16,9 +16,9 @@ limitations under the License.
from typing import Union, Sequence, Tuple
from oneflow.compatible_single_client_python.framework.tensor import Tensor
from oneflow.compatible_single_client_python.oneflow_export import oneflow_export
from oneflow.compatible_single_client_python.framework.tensor_tuple_util import (
from oneflow.compatible.single_client.python.framework.tensor import Tensor
from oneflow.compatible.single_client.python.oneflow_export import oneflow_export
from oneflow.compatible.single_client.python.framework.tensor_tuple_util import (
convert_to_tensor_tuple,
)
from oneflow._oneflow_internal import TensorTuple
......
......@@ -16,7 +16,7 @@ limitations under the License.
from __future__ import absolute_import
import traceback
from oneflow.compatible_single_client_python.oneflow_export import oneflow_export
from oneflow.compatible.single_client.python.oneflow_export import oneflow_export
import oneflow._oneflow_internal
......
......@@ -22,12 +22,12 @@ import uuid
from tempfile import NamedTemporaryFile
from google.protobuf import text_format as pbtxt
from oneflow.compatible_single_client_python.framework import env_util as env_util
from oneflow.compatible.single_client.python.framework import env_util as env_util
from oneflow.compatible.single_client.core.job.env_pb2 import EnvProto
from oneflow.compatible.single_client.core.control.ctrl_bootstrap_pb2 import (
BootstrapConf,
)
from oneflow.compatible_single_client_python.oneflow_export import oneflow_export
from oneflow.compatible.single_client.python.oneflow_export import oneflow_export
import subprocess
......
......@@ -22,7 +22,7 @@ from oneflow.compatible.single_client.core.operator import op_conf_pb2 as op_con
from oneflow.compatible.single_client.core.job import (
initializer_conf_pb2 as initializer_conf_util,
)
from oneflow.compatible_single_client_python.oneflow_export import oneflow_export
from oneflow.compatible.single_client.python.oneflow_export import oneflow_export
@oneflow_export("truncated_normal")
......
......@@ -15,13 +15,13 @@ limitations under the License.
"""
from __future__ import absolute_import
from oneflow.compatible_single_client_python.lib.core.high_order_bool import (
from oneflow.compatible.single_client.python.lib.core.high_order_bool import (
bool_functor,
)
from oneflow.compatible_single_client_python.lib.core.high_order_bool import (
from oneflow.compatible.single_client.python.lib.core.high_order_bool import (
hob_context_attr,
)
from oneflow.compatible_single_client_python.lib.core.high_order_bool import BoolFunctor
from oneflow.compatible.single_client.python.lib.core.high_order_bool import BoolFunctor
import oneflow._oneflow_internal
......
......@@ -15,7 +15,7 @@ limitations under the License.
"""
from __future__ import absolute_import
from oneflow.compatible_single_client_python.eager import symbol as symbol_util
from oneflow.compatible.single_client.python.eager import symbol as symbol_util
from oneflow.compatible.single_client.core.job import (
sbp_parallel_pb2 as sbp_parallel_pb,
)
......
......@@ -16,7 +16,7 @@ limitations under the License.
from __future__ import absolute_import
from contextlib import contextmanager
from oneflow.compatible_single_client_python.eager import symbol as symbol_util
from oneflow.compatible.single_client.python.eager import symbol as symbol_util
from oneflow.compatible.single_client.core.operator import op_conf_pb2 as op_conf_pb
from oneflow.compatible.single_client.core.operator import (
op_attribute_pb2 as op_attribute_pb,
......@@ -24,22 +24,22 @@ from oneflow.compatible.single_client.core.operator import (
from oneflow.compatible.single_client.core.job import (
sbp_parallel_pb2 as sbp_parallel_pb,
)
from oneflow.compatible_single_client_python.framework import id_util as id_util
from oneflow.compatible_single_client_python.framework import c_api_util as c_api_util
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import id_util as id_util
from oneflow.compatible.single_client.python.framework import c_api_util as c_api_util
from oneflow.compatible.single_client.python.framework import (
balanced_splitter as balanced_splitter,
)
from oneflow.compatible_single_client_python.lib.core import enable_if as enable_if
from oneflow.compatible_single_client_python.lib.core import (
from oneflow.compatible.single_client.python.lib.core import enable_if as enable_if
from oneflow.compatible.single_client.python.lib.core import (
high_order_bool as high_order_bool,
)
from oneflow.compatible.single_client.core.register import (
logical_blob_id_pb2 as logical_blob_id_util,
)
from oneflow.compatible_single_client_python.eager import boxing_hob as boxing_hob
from oneflow.compatible_single_client_python.eager import op_infer_util as op_infer_util
from oneflow.compatible_single_client_python.eager.boxing_hob import BoxingHobContext
from oneflow.compatible_single_client_python.eager import boxing_middle as boxing_middle
from oneflow.compatible.single_client.python.eager import boxing_hob as boxing_hob
from oneflow.compatible.single_client.python.eager import op_infer_util as op_infer_util
from oneflow.compatible.single_client.python.eager.boxing_hob import BoxingHobContext
from oneflow.compatible.single_client.python.eager import boxing_middle as boxing_middle
import random
from oneflow.compatible import single_client as flow
from oneflow._oneflow_internal.oneflow.core.job import placement as placement_cfg
......
......@@ -15,14 +15,14 @@ limitations under the License.
"""
from __future__ import absolute_import
from oneflow.compatible_single_client_python.framework.dtype import (
from oneflow.compatible.single_client.python.framework.dtype import (
convert_proto_dtype_to_oneflow_dtype,
)
from oneflow.compatible_single_client_python.framework import blob_trait as blob_trait
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import blob_trait as blob_trait
from oneflow.compatible.single_client.python.framework import (
python_callback as python_callback,
)
from oneflow.compatible_single_client_python.lib.core import async_util as async_util
from oneflow.compatible.single_client.python.lib.core import async_util as async_util
import oneflow._oneflow_internal
......
......@@ -15,7 +15,7 @@ limitations under the License.
"""
from __future__ import absolute_import
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import (
session_context as session_ctx,
)
......
......@@ -15,16 +15,16 @@ limitations under the License.
"""
from __future__ import absolute_import
from oneflow.compatible_single_client_python.eager import gradient_util as gradient_util
from oneflow.compatible_single_client_python.eager import op_executor as op_executor
from oneflow.compatible.single_client.python.eager import gradient_util as gradient_util
from oneflow.compatible.single_client.python.eager import op_executor as op_executor
from oneflow.compatible.single_client.core.operator import (
op_attribute_pb2 as op_attribute_pb,
)
from oneflow.compatible.single_client.core.job import scope_pb2 as scope_pb
from oneflow.compatible.single_client.core.job import placement_pb2 as placement_pb
from google.protobuf import text_format
from oneflow.compatible_single_client_python.framework import scope_util as scope_util
from oneflow.compatible_single_client_python.eager import (
from oneflow.compatible.single_client.python.framework import scope_util as scope_util
from oneflow.compatible.single_client.python.eager import (
symbol_storage as symbol_storage,
)
import oneflow._oneflow_internal
......
......@@ -25,29 +25,29 @@ from oneflow.compatible.single_client.core.operator import op_conf_pb2 as op_con
from oneflow.compatible.single_client.core.operator import (
interface_blob_conf_pb2 as inter_face_blob_conf_util,
)
from oneflow.compatible_single_client_python.eager import boxing_util as boxing_util
from oneflow.compatible_single_client_python.eager import (
from oneflow.compatible.single_client.python.eager import boxing_util as boxing_util
from oneflow.compatible.single_client.python.eager import (
blob_register as blob_register_util,
)
from oneflow.compatible_single_client_python.eager import (
from oneflow.compatible.single_client.python.eager import (
symbol_storage as symbol_storage,
)
from oneflow.compatible_single_client_python.framework import c_api_util as c_api_util
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import c_api_util as c_api_util
from oneflow.compatible.single_client.python.framework import (
remote_blob as remote_blob_util,
)
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import (
python_callback as python_callback,
)
from oneflow.compatible_single_client_python.experimental import (
from oneflow.compatible.single_client.python.experimental import (
name_scope as name_scope,
)
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import (
session_context as session_ctx,
)
from oneflow.compatible_single_client_python.framework import scope_util as scope_util
from oneflow.compatible_single_client_python.eager import op_infer_util as op_infer_util
from oneflow.compatible_single_client_python.eager import (
from oneflow.compatible.single_client.python.framework import scope_util as scope_util
from oneflow.compatible.single_client.python.eager import op_infer_util as op_infer_util
from oneflow.compatible.single_client.python.eager import (
blob_register as blob_register_util,
)
from oneflow._oneflow_internal.oneflow.core.job import placement as placement_cfg
......
......@@ -17,7 +17,7 @@ from __future__ import absolute_import
from oneflow.compatible.single_client.core.operator import (
op_node_signature_pb2 as op_node_signature_pb,
)
from oneflow.compatible_single_client_python.framework import c_api_util as c_api_util
from oneflow.compatible.single_client.python.framework import c_api_util as c_api_util
from oneflow._oneflow_internal.oneflow.core.operator import (
op_node_signature as op_node_signature_cfg,
)
......
......@@ -15,7 +15,7 @@ limitations under the License.
"""
from __future__ import absolute_import
from oneflow.compatible_single_client_python.framework import c_api_util as c_api_util
from oneflow.compatible.single_client.python.framework import c_api_util as c_api_util
from oneflow.compatible.single_client.core.job import placement_pb2 as placement_pb
import functools
......
......@@ -15,9 +15,9 @@ limitations under the License.
"""
from __future__ import absolute_import
from oneflow.compatible_single_client_python.oneflow_export import oneflow_export
from oneflow.compatible_single_client_python.framework import hob as hob
from oneflow.compatible_single_client_python.lib.core import enable_if as enable_if
from oneflow.compatible.single_client.python.oneflow_export import oneflow_export
from oneflow.compatible.single_client.python.framework import hob as hob
from oneflow.compatible.single_client.python.lib.core import enable_if as enable_if
@oneflow_export("experimental.enable_typing_check")
......
......@@ -21,21 +21,21 @@ from oneflow.compatible.single_client.core.operator import op_conf_pb2 as op_con
from oneflow.compatible.single_client.core.register import (
logical_blob_id_pb2 as logical_blob_id_util,
)
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import (
interpret_util as interpret_util,
)
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import (
distribute as distribute_util,
)
from oneflow.compatible_single_client_python.framework import id_util as id_util
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import id_util as id_util
from oneflow.compatible.single_client.python.framework import (
input_blob_def as input_blob_util,
)
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import (
remote_blob as remote_blob_util,
)
import oneflow._oneflow_internal
from oneflow.compatible_single_client_python.oneflow_export import oneflow_export
from oneflow.compatible.single_client.python.oneflow_export import oneflow_export
from typing import Optional, Tuple
......
......@@ -17,21 +17,21 @@ from oneflow.compatible import single_client as flow
from oneflow.compatible.single_client.core.register import (
logical_blob_id_pb2 as logical_blob_id_util,
)
from oneflow.compatible_single_client_python.lib.core import async_util as async_util
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.lib.core import async_util as async_util
from oneflow.compatible.single_client.python.framework import (
input_blob_def as input_blob_def_util,
)
from oneflow.compatible_single_client_python.framework import dtype as dtype_util
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import dtype as dtype_util
from oneflow.compatible.single_client.python.framework import (
remote_blob as remote_blob_util,
)
from oneflow.compatible_single_client_python.framework import push_util as push_util
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import push_util as push_util
from oneflow.compatible.single_client.python.framework import (
session_context as session_ctx,
)
from oneflow.compatible_single_client_python.framework import runtime_mode as rt_mode
from oneflow.compatible_single_client_python.oneflow_export import oneflow_export
from oneflow.compatible_single_client_python.eager import op_executor as op_executor
from oneflow.compatible.single_client.python.framework import runtime_mode as rt_mode
from oneflow.compatible.single_client.python.oneflow_export import oneflow_export
from oneflow.compatible.single_client.python.eager import op_executor as op_executor
from oneflow._oneflow_internal.oneflow.core.job import placement as placement_cfg
from oneflow._oneflow_internal.oneflow.core.register import logical_blob_id as lbi_util
from oneflow._oneflow_internal.oneflow.core.common import shape as shape_proto_cfg
......
......@@ -19,7 +19,7 @@ import numpy as np
from tqdm import tqdm
import requests
from oneflow.compatible_single_client_python.oneflow_export import oneflow_export
from oneflow.compatible.single_client.python.oneflow_export import oneflow_export
def get_sha256hash(file_path, Bytes=1024):
......
......@@ -17,11 +17,11 @@ from __future__ import absolute_import
from contextlib import contextmanager
from oneflow.compatible_single_client_python.framework import (
from oneflow.compatible.single_client.python.framework import (
session_context as session_context,
)
from oneflow.compatible_single_client_python.framework import scope_util as scope_util
from oneflow.compatible_single_client_python.oneflow_export import (
from oneflow.compatible.single_client.python.framework import scope_util as scope_util
from oneflow.compatible.single_client.python.oneflow_export import (
oneflow_export,
oneflow_deprecate,
)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment