From 36de3989247a2f5265694e3d2eddb431c95a2628 Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Thu, 12 Oct 2017 11:19:14 -0700 Subject: [PATCH] Rename Python `graph` to `framework` (#4762) --- python/paddle/v2/framework/{graph.py => framework.py} | 0 python/paddle/v2/framework/tests/test_operator_desc.py | 2 +- python/paddle/v2/framework/tests/test_parameter.py | 2 +- python/paddle/v2/framework/tests/test_program.py | 2 +- python/paddle/v2/framework/tests/test_variable.py | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename python/paddle/v2/framework/{graph.py => framework.py} (100%) diff --git a/python/paddle/v2/framework/graph.py b/python/paddle/v2/framework/framework.py similarity index 100% rename from python/paddle/v2/framework/graph.py rename to python/paddle/v2/framework/framework.py diff --git a/python/paddle/v2/framework/tests/test_operator_desc.py b/python/paddle/v2/framework/tests/test_operator_desc.py index ec6c6bc1833..d7a85d8e4e8 100644 --- a/python/paddle/v2/framework/tests/test_operator_desc.py +++ b/python/paddle/v2/framework/tests/test_operator_desc.py @@ -1,5 +1,5 @@ import unittest -from paddle.v2.framework.graph import Variable, g_program +from paddle.v2.framework.framework import Variable, g_program import paddle.v2.framework.core as core diff --git a/python/paddle/v2/framework/tests/test_parameter.py b/python/paddle/v2/framework/tests/test_parameter.py index 3b5d38f257e..1ac0cdd99f1 100644 --- a/python/paddle/v2/framework/tests/test_parameter.py +++ b/python/paddle/v2/framework/tests/test_parameter.py @@ -1,5 +1,5 @@ import unittest -from paddle.v2.framework.graph import g_program +from paddle.v2.framework.framework import g_program import paddle.v2.framework.core as core diff --git a/python/paddle/v2/framework/tests/test_program.py b/python/paddle/v2/framework/tests/test_program.py index 83e184494ad..64b781e6ea2 100644 --- a/python/paddle/v2/framework/tests/test_program.py +++ b/python/paddle/v2/framework/tests/test_program.py @@ -1,7 +1,7 @@ import unittest import paddle.v2.framework.core as core -from paddle.v2.framework.graph import g_program +from paddle.v2.framework.framework import g_program class TestProgram(unittest.TestCase): diff --git a/python/paddle/v2/framework/tests/test_variable.py b/python/paddle/v2/framework/tests/test_variable.py index 8ea1083ff65..695aaaee6c0 100644 --- a/python/paddle/v2/framework/tests/test_variable.py +++ b/python/paddle/v2/framework/tests/test_variable.py @@ -1,5 +1,5 @@ import unittest -from paddle.v2.framework.graph import Variable, g_program +from paddle.v2.framework.framework import Variable, g_program import paddle.v2.framework.core as core import numpy as np -- GitLab