Skip to content
Merged
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
8 changes: 3 additions & 5 deletions inference_schema/schema_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# ---------------------------------------------------------

import copy
import inspect

from inference_schema._constants import INPUT_SCHEMA_ATTR, OUTPUT_SCHEMA_ATTR

Expand Down Expand Up @@ -108,10 +107,9 @@ def _get_function_full_qual_name(func):
:rtype: str
"""

decorators = _get_decorators(func)
base_func_name = decorators[-1].__name__
module = inspect.getmodule(decorators[-1])
module_name = "" if module is None else module.__name__
original_func = _get_decorators(func)[-1]
base_func_name = original_func.__name__
module_name = getattr(original_func, '__module__', '<unknown>')
return '{}.{}'.format(module_name, base_func_name)


Expand Down