提交 95e2d286 编写于 作者: M minqiyang

Replace relative_import with absolute_import

上级 95b4a6a2
...@@ -12,16 +12,16 @@ ...@@ -12,16 +12,16 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
try: try:
from version import full_version as __version__ from paddle.version import full_version as __version__
from version import commit as __git_commit__ from paddle.version import commit as __git_commit__
except ImportError: except ImportError:
import sys import sys
sys.stderr.write('''Warning with import paddle: you should not sys.stderr.write('''Warning with import paddle: you should not
import paddle from the source directory; please install paddlepaddle*.whl firstly.''' import paddle from the source directory; please install paddlepaddle*.whl firstly.'''
) )
import reader import paddle.reader
import dataset import paddle.dataset
import batch import paddle.batch
batch = batch.batch batch = batch.batch
...@@ -15,20 +15,20 @@ ...@@ -15,20 +15,20 @@
Dataset package. Dataset package.
""" """
import mnist import paddle.dataset.mnist
import imikolov import paddle.dataset.imikolov
import imdb import paddle.dataset.imdb
import cifar import paddle.dataset.cifar
import movielens import paddle.dataset.movielens
import conll05 import paddle.dataset.conll05
import uci_housing import paddle.dataset.uci_housing
import sentiment import paddle.dataset.sentiment
import wmt14 import paddle.dataset.wmt14
import wmt16 import paddle.dataset.wmt16
import mq2007 import paddle.dataset.mq2007
import flowers import paddle.dataset.flowers
import voc2012 import paddle.dataset.voc2012
import image import paddle.dataset.image
__all__ = [ __all__ = [
'mnist', 'mnist',
......
...@@ -66,9 +66,9 @@ An example implementation for multiple item data reader creator: ...@@ -66,9 +66,9 @@ An example implementation for multiple item data reader creator:
TODO(yuyang18): Should we add whole design doc here? TODO(yuyang18): Should we add whole design doc here?
""" """
import decorator import paddle.reader.decorator
from decorator import * from paddle.reader.decorator import *
import creator import paddle.reader.creator
__all__ = decorator.__all__ + ['creator'] __all__ = decorator.__all__ + ['creator']
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册