Skip to content

Commit 4adc8a7

Browse files
authored
Change framework to fluid (#5637)
* init commit * change some dir name
1 parent f06d8f0 commit 4adc8a7

File tree

161 files changed

+222
-222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+222
-222
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ third_party/
2121
cmake-build-*
2222

2323
# generated while compiling
24-
python/paddle/v2/framework/core.so
24+
python/paddle/v2/fluid/core.so
2525
paddle/pybind/pybind.h
2626
CMakeFiles
2727
cmake_install.cmake

python/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in
3737
${CMAKE_CURRENT_BINARY_DIR}/setup.py)
3838

3939

40-
add_custom_command(OUTPUT ${PADDLE_SOURCE_DIR}/python/paddle/v2/framework/core.so
41-
COMMAND cmake -E copy $<TARGET_FILE:paddle_pybind> ${PADDLE_SOURCE_DIR}/python/paddle/v2/framework/core.so
40+
add_custom_command(OUTPUT ${PADDLE_SOURCE_DIR}/python/paddle/v2/fluid/core.so
41+
COMMAND cmake -E copy $<TARGET_FILE:paddle_pybind> ${PADDLE_SOURCE_DIR}/python/paddle/v2/fluid/core.so
4242
DEPENDS paddle_pybind)
43-
add_custom_target(copy_paddle_pybind ALL DEPENDS ${PADDLE_SOURCE_DIR}/python/paddle/v2/framework/core.so)
43+
add_custom_target(copy_paddle_pybind ALL DEPENDS ${PADDLE_SOURCE_DIR}/python/paddle/v2/fluid/core.so)
4444

4545

4646
add_custom_command(OUTPUT ${PADDLE_PYTHON_BUILD_DIR}/.timestamp
@@ -66,7 +66,7 @@ if (WITH_TESTING)
6666
add_subdirectory(paddle/v2/tests)
6767
add_subdirectory(paddle/v2/reader/tests)
6868
add_subdirectory(paddle/v2/plot/tests)
69-
add_subdirectory(paddle/v2/framework/tests)
69+
add_subdirectory(paddle/v2/fluid/tests)
7070
endif()
7171
endif()
7272
install(DIRECTORY ${PADDLE_PYTHON_PACKAGE_DIR}

python/paddle/v2/framework/backward.py renamed to python/paddle/v2/fluid/backward.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from paddle.v2.framework import framework as framework
1+
from paddle.v2.fluid import framework as framework
22

33
__all__ = ['append_backward_ops']
44

python/paddle/v2/framework/default_scope_funcs.py renamed to python/paddle/v2/fluid/default_scope_funcs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
invoked in a new local scope.
1414
"""
1515

16-
import paddle.v2.framework.core
16+
import paddle.v2.fluid.core
1717
import threading
1818

1919
__tl_scope__ = threading.local()
@@ -27,13 +27,13 @@
2727
def get_cur_scope():
2828
"""
2929
Get current scope.
30-
:rtype: paddle.v2.framework.core.Scope
30+
:rtype: paddle.v2.fluid.core.Scope
3131
"""
3232
cur_scope_stack = getattr(__tl_scope__, 'cur_scope', None)
3333
if cur_scope_stack is None:
3434
__tl_scope__.cur_scope = list()
3535
if len(__tl_scope__.cur_scope) == 0:
36-
__tl_scope__.cur_scope.append(paddle.v2.framework.core.Scope())
36+
__tl_scope__.cur_scope.append(paddle.v2.fluid.core.Scope())
3737
return __tl_scope__.cur_scope[-1]
3838

3939

python/paddle/v2/framework/evaluator.py renamed to python/paddle/v2/fluid/evaluator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import paddle.v2.framework.op as op
1+
import paddle.v2.fluid.op as op
22
import numpy as np
3-
import paddle.v2.framework.core as core
3+
import paddle.v2.fluid.core as core
44

55

66
def avg_accumulate(accumulated_var, per_eval, num_batches, place):
@@ -22,7 +22,7 @@ def __init__(self,
2222
NOTE: default run on CPUPlace(), running on GPUPlace doesn't improve performance much.
2323
2424
:param scope: the scope instance contains the input.
25-
:type scope: paddle.v2.framework.core.scope
25+
:type scope: paddle.v2.fluid.core.scope
2626
:param operator: operator name for caculating the evaluation for each mini-batch.
2727
:type operator: string
2828
:param input: output variable name of forward network.

python/paddle/v2/framework/executor.py renamed to python/paddle/v2/fluid/executor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import paddle.v2.framework.core as core
2-
from paddle.v2.framework.framework import Block, Program, g_main_program
1+
import paddle.v2.fluid.core as core
2+
from paddle.v2.fluid.framework import Block, Program, g_main_program
33

44
g_scope = core.Scope()
55

python/paddle/v2/framework/framework.py renamed to python/paddle/v2/fluid/framework.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import paddle.v2.framework.core as core
2-
import paddle.v2.framework.proto.framework_pb2 as framework_pb2
1+
import paddle.v2.fluid.core as core
2+
import paddle.v2.fluid.proto.framework_pb2 as framework_pb2
33
import collections
44
import numpy as np
55
import copy

python/paddle/v2/framework/initializer.py renamed to python/paddle/v2/fluid/initializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import paddle.v2.framework.framework as framework
1+
import paddle.v2.fluid.framework as framework
22
import numpy as np
33

44
__all__ = [

0 commit comments

Comments
 (0)