Executes the wrapped function. Args: *args: Tensors or Variables. Positional arguments are only accepted when they correspond one-to-one with arguments of the traced Python function. **kwargs: Tensors or Variables specified by name. When `get_concrete_function` was c
(self, *args, **kwargs)
| 1056 | func_graph, attrs, self._garbage_collector) |
| 1057 | |
| 1058 | def __call__(self, *args, **kwargs): |
| 1059 | """Executes the wrapped function. |
| 1060 | |
| 1061 | Args: |
| 1062 | *args: Tensors or Variables. Positional arguments are only accepted when |
| 1063 | they correspond one-to-one with arguments of the traced Python function. |
| 1064 | **kwargs: Tensors or Variables specified by name. When |
| 1065 | `get_concrete_function` was called to create this `ConcreteFunction`, |
| 1066 | each Tensor input was given a name, defaulting to the name of the Python |
| 1067 | function's argument but possibly overridden by the `name=` argument to |
| 1068 | `tf.TensorSpec`. These names become the argument names for the concrete |
| 1069 | function. |
| 1070 | |
| 1071 | Returns: |
| 1072 | The result of applying the TF function on the given Tensors. |
| 1073 | |
| 1074 | Raises: |
| 1075 | AssertionError: If this `ConcreteFunction` was not created through |
| 1076 | `get_concrete_function`. |
| 1077 | ValueError: If arguments contains anything other than Tensors or |
| 1078 | Variables. |
| 1079 | TypeError: For invalid positional/keyword argument combinations. |
| 1080 | """ |
| 1081 | return self._call_impl(args, kwargs) |
| 1082 | |
| 1083 | def _call_impl(self, args, kwargs, cancellation_manager=None): |
| 1084 | """See `__call__` for details.""" |
nothing calls this directly
no test coverage detected