From 302a59ff26a126e569478ba08661a5922ac02b14 Mon Sep 17 00:00:00 2001 From: zhangchunle Date: Thu, 23 Apr 2020 10:47:18 +0800 Subject: [PATCH] remove high level api (#850) --- 08.machine_translation/README.md | 9 --------- 08.machine_translation/index.html | 9 --------- 2 files changed, 18 deletions(-) diff --git a/08.machine_translation/README.md b/08.machine_translation/README.md index 327dd5a..3d3796f 100644 --- a/08.machine_translation/README.md +++ b/08.machine_translation/README.md @@ -155,15 +155,6 @@ import paddle.fluid.layers as pd from paddle.fluid.executor import Executor from functools import partial import os -try: - from paddle.fluid.contrib.trainer import * - from paddle.fluid.contrib.inferencer import * -except ImportError: - print( - "In the fluid 1.0, the trainer and inferencer are moving to paddle.fluid.contrib", - file=sys.stderr) - from paddle.fluid.trainer import * - from paddle.fluid.inferencer import * dict_size = 30000 # dictionary dimension source_dict_dim = target_dict_dim = dict_size # source/target language dictionary dimension diff --git a/08.machine_translation/index.html b/08.machine_translation/index.html index 8663a0f..e1bd7d2 100644 --- a/08.machine_translation/index.html +++ b/08.machine_translation/index.html @@ -197,15 +197,6 @@ import paddle.fluid.layers as pd from paddle.fluid.executor import Executor from functools import partial import os -try: - from paddle.fluid.contrib.trainer import * - from paddle.fluid.contrib.inferencer import * -except ImportError: - print( - "In the fluid 1.0, the trainer and inferencer are moving to paddle.fluid.contrib", - file=sys.stderr) - from paddle.fluid.trainer import * - from paddle.fluid.inferencer import * dict_size = 30000 # dictionary dimension source_dict_dim = target_dict_dim = dict_size # source/target language dictionary dimension -- GitLab