diff --git a/fluid/neural_machine_translation/transformer/infer.py b/fluid/neural_machine_translation/transformer/infer.py index b8b002dc0757481137d452400f276af4342a8af9..02674df125c208dd1a4d5f7ea2b8735980048b05 100644 --- a/fluid/neural_machine_translation/transformer/infer.py +++ b/fluid/neural_machine_translation/transformer/infer.py @@ -1,6 +1,6 @@ import numpy as np -import paddle.v2 as paddle +import paddle import paddle.fluid as fluid import model diff --git a/fluid/neural_machine_translation/transformer/train.py b/fluid/neural_machine_translation/transformer/train.py index 13e4fe7a4aa787f6e59ceb15d40dbd1f1477c86c..79876a5dd352c96d337d38552f117b8cc3b2c664 100644 --- a/fluid/neural_machine_translation/transformer/train.py +++ b/fluid/neural_machine_translation/transformer/train.py @@ -1,7 +1,7 @@ import os import numpy as np -import paddle.v2 as paddle +import paddle import paddle.fluid as fluid from model import transformer, position_encoding_init