ignore_module

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

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

Parameters

modules (list[ModuleType]) – 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)