未验证 提交 2c00d0f9 编写于 作者: C Cao Ying 提交者: GitHub

Merge pull request #668 from luotao1/fluid

move paddle.v2.fluid to paddle.fluid
......@@ -4,7 +4,7 @@ from __future__ import print_function
import os
import argparse
import paddle.v2.fluid as fluid
import paddle.fluid as fluid
import data_utils.augmentor.trans_mean_variance_norm as trans_mean_variance_norm
import data_utils.augmentor.trans_add_delta as trans_add_delta
import data_utils.augmentor.trans_splice as trans_splice
......
......@@ -3,7 +3,7 @@ from __future__ import division
from __future__ import print_function
import paddle.v2 as paddle
import paddle.v2.fluid as fluid
import paddle.fluid as fluid
def stacked_lstmp_model(hidden_dim,
......
......@@ -7,8 +7,8 @@ import numpy as np
import argparse
import time
import paddle.v2.fluid as fluid
import paddle.v2.fluid.profiler as profiler
import paddle.fluid as fluid
import paddle.fluid.profiler as profiler
import _init_paths
import data_utils.augmentor.trans_mean_variance_norm as trans_mean_variance_norm
import data_utils.augmentor.trans_add_delta as trans_add_delta
......
......@@ -8,7 +8,7 @@ import numpy as np
import argparse
import time
import paddle.v2.fluid as fluid
import paddle.fluid as fluid
import data_utils.augmentor.trans_mean_variance_norm as trans_mean_variance_norm
import data_utils.augmentor.trans_add_delta as trans_add_delta
import data_utils.augmentor.trans_splice as trans_splice
......
......@@ -4,7 +4,7 @@ Paddle model
from __future__ import absolute_import
import numpy as np
import paddle.v2.fluid as fluid
import paddle.fluid as fluid
from .base import Model
......@@ -16,7 +16,7 @@ class PaddleModel(Model):
instance of PaddleModel.
Args:
program(paddle.v2.fluid.framework.Program): The program of the model
program(paddle.fluid.framework.Program): The program of the model
which generate the adversarial sample.
input_name(string): The name of the input.
logits_name(string): The name of the logits.
......
......@@ -2,7 +2,7 @@
CNN on mnist data using fluid api of paddlepaddle
"""
import paddle.v2 as paddle
import paddle.v2.fluid as fluid
import paddle.fluid as fluid
def mnist_cnn_model(img):
......
......@@ -3,7 +3,7 @@ FGSM demos on mnist using advbox tool.
"""
import matplotlib.pyplot as plt
import paddle.v2 as paddle
import paddle.v2.fluid as fluid
import paddle.fluid as fluid
from advbox import Adversary
from advbox.attacks.gradientsign import GradientSignAttack
......
......@@ -3,7 +3,7 @@ FGSM demos on mnist using advbox tool.
"""
import matplotlib.pyplot as plt
import paddle.v2 as paddle
import paddle.v2.fluid as fluid
import paddle.fluid as fluid
import numpy as np
from advbox import Adversary
......
import os
import paddle.v2 as paddle
import paddle.v2.fluid as fluid
from paddle.v2.fluid.initializer import MSRA
from paddle.v2.fluid.param_attr import ParamAttr
import paddle.fluid as fluid
from paddle.fluid.initializer import MSRA
from paddle.fluid.param_attr import ParamAttr
parameter_attr = ParamAttr(initializer=MSRA())
......
import os
import paddle.v2 as paddle
import paddle.v2.fluid as fluid
import paddle.fluid as fluid
import reader
......
import numpy as np
import paddle.v2 as paddle
import paddle.v2.fluid as fluid
import paddle.fluid as fluid
# reproducible
np.random.seed(1)
......
......@@ -5,7 +5,7 @@ import argparse
import time
import paddle.v2 as paddle
import paddle.v2.fluid as fluid
import paddle.fluid as fluid
from config import TrainConfig as conf
......
......@@ -2,8 +2,8 @@ from functools import partial
import numpy as np
import paddle.v2 as paddle
import paddle.v2.fluid as fluid
import paddle.v2.fluid.layers as layers
import paddle.fluid as fluid
import paddle.fluid.layers as layers
from config import TrainTaskConfig, input_data_names, pos_enc_param_names
......
import numpy as np
import paddle.v2 as paddle
import paddle.v2.fluid as fluid
import paddle.fluid as fluid
from model import transformer, position_encoding_init
from config import TrainTaskConfig, ModelHyperParams, \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册