def _call_unconverted(f, args, kwargs, options, update_cache=True): """Calls the original function without converting with AutoGraph.""" if update_cache: conversion.cache_whitelisted(f, options) if inspect.ismethod(f) and isinstance(f.__self__, function.TfMethodTarget): return f.__self__.call(args, kwargs) if kwargs is not None: return f(*args, **kwargs) return f(*args)
def _call_unconverted(f, args, kwargs, options, update_cache=True): """Calls the original function without converting with AutoGraph.""" if update_cache: conversion.cache_whitelisted(f, options) if inspect_utils.istfmethodtarget(f): return f.__self__.call(args, kwargs) if kwargs is not None: return f(*args, **kwargs) else: return f(*args)
def _call_unconverted(f, args, kwargs, options, update_cache=True): """Calls the original function without converting with AutoGraph.""" if update_cache: conversion.cache_whitelisted(f, options) if inspect_utils.istfmethodtarget(f): return f.__self__.call(args, kwargs) try: if kwargs is not None: return f(*args, **kwargs) else: return f(*args) except Exception as e: # pylint:disable=broad-except _attach_metadata(e, f, False) raise