(self, op_type, inputs, dtypes=None, **kwargs)
| 801 | return var |
| 802 | |
| 803 | def create_op(self, op_type, inputs, dtypes=None, **kwargs): # pylint: disable=redefined-outer-name |
| 804 | for i, x in enumerate(inputs): |
| 805 | if isinstance(x, ops.EagerTensor) or x.graph is not self: |
| 806 | inputs[i] = self.capture(x) |
| 807 | return super(_FuncGraph, self).create_op(op_type, inputs, |
| 808 | dtypes=dtypes, **kwargs) |
| 809 | |
| 810 | def capture(self, tensor, name=None): |
| 811 | """Adds the given tensor to this graph and returns the captured tensor.""" |
no test coverage detected