(tensors)
| 5833 | |
| 5834 | |
| 5835 | def cast_variables_to_tensor(tensors): |
| 5836 | |
| 5837 | def _cast_variables_to_tensor(tensor): |
| 5838 | if isinstance(tensor, variables_module.Variable): |
| 5839 | return array_ops.identity(tensor) |
| 5840 | return tensor |
| 5841 | |
| 5842 | return nest.map_structure(_cast_variables_to_tensor, tensors) |
| 5843 | |
| 5844 | |
| 5845 | def _is_symbolic_tensor(x): |