Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 9 additions & 24 deletions python/paddle/jit/dy2static/convert_call_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,30 +81,15 @@ def name_judge():
return False


def builtin_modules():
"""
Return builtin modules.
"""
modules = [
collections,
pdb,
copy,
inspect,
re,
numpy,
logging,
]
try:
import six

modules.append(six)
except ImportError:
pass # do nothing

return modules


BUILTIN_LIKELY_MODULES = builtin_modules()
BUILTIN_LIKELY_MODULES = [
collections,
pdb,
copy,
inspect,
re,
numpy,
logging,
]


def is_unsupported(func):
Expand Down