ignore_module

paddle.jit. ignore_module ( modules: list[Any] ) [source]

Adds modules that ignore transcription. Builtin modules that have been ignored are collections, pdb, copy, inspect, re, numpy, logging, six

Parameters

modules (List[Any]) – Ignored modules that you want to add

Examples

>>> import scipy
>>> import astor

>>> import paddle
>>> from paddle.jit import ignore_module
>>> modules = [
...     scipy,
...     astor,
... ]
>>> ignore_module(modules)