MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _call_unconverted

Function _call_unconverted

tensorflow/python/autograph/impl/api.py:320–335  ·  view source on GitHub ↗

Calls the original function without converting with AutoGraph.

(f, args, kwargs, options, update_cache=True)

Source from the content-addressed store, hash-verified

318
319
320def _call_unconverted(f, args, kwargs, options, update_cache=True):
321 """Calls the original function without converting with AutoGraph."""
322 if update_cache:
323 conversion.cache_unconverted(f, options)
324
325 if inspect_utils.istfmethodtarget(f):
326 return f.__self__.call(args, kwargs)
327
328 try:
329 if kwargs is not None:
330 return f(*args, **kwargs)
331 else:
332 return f(*args)
333 except Exception as e: # pylint:disable=broad-except
334 _attach_metadata(e, f, False)
335 raise
336
337
338def _is_known_loaded_type(f, module_name, entity_name):

Callers 1

converted_callFunction · 0.85

Calls 3

_attach_metadataFunction · 0.85
fFunction · 0.50
callMethod · 0.45

Tested by

no test coverage detected