From dc9c450151dc034923fcc2b9fbdfe4e54f64d281 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Thu, 5 Jul 2018 13:17:35 +0800 Subject: [PATCH] add inference_transpiler doc to 0.14.0 --- doc/fluid/api/transpiler.rst | 9 +++++++++ python/paddle/fluid/transpiler/inference_transpiler.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/fluid/api/transpiler.rst b/doc/fluid/api/transpiler.rst index 943d39331d..d2ac04f144 100644 --- a/doc/fluid/api/transpiler.rst +++ b/doc/fluid/api/transpiler.rst @@ -14,6 +14,15 @@ DistributeTranspiler :members: :noindex: +.. _api_fluid_transpiler_InferenceTranspiler: + +InferenceTranspiler +------------------- + +.. autoclass:: paddle.fluid.transpiler.InferenceTranspiler + :members: + :noindex: + .. _api_fluid_transpiler_memory_optimize: memory_optimize diff --git a/python/paddle/fluid/transpiler/inference_transpiler.py b/python/paddle/fluid/transpiler/inference_transpiler.py index 0629f2916b..6484c8e770 100644 --- a/python/paddle/fluid/transpiler/inference_transpiler.py +++ b/python/paddle/fluid/transpiler/inference_transpiler.py @@ -18,7 +18,7 @@ from ..framework import Program from ..executor import global_scope -class InferenceTranspiler: +class InferenceTranspiler(object): ''' Convert the fluid program to optimized inference program. -- GitLab