Decorated function with custom gradient.
(*args, **kwargs)
| 161 | """ |
| 162 | |
| 163 | def decorated(*args, **kwargs): |
| 164 | """Decorated function with custom gradient.""" |
| 165 | if context.executing_eagerly(): |
| 166 | return _eager_mode_decorator(f, *args, **kwargs) |
| 167 | else: |
| 168 | return _graph_mode_decorator(f, *args, **kwargs) |
| 169 | |
| 170 | return tf_decorator.make_decorator(f, decorated) |
| 171 |
nothing calls this directly
no test coverage detected