(tensor_or_op)
| 273 | |
| 274 | |
| 275 | def is_constant(tensor_or_op): |
| 276 | if isinstance(tensor_or_op, ops.Tensor): |
| 277 | op = tensor_or_op.op |
| 278 | else: |
| 279 | op = tensor_or_op |
| 280 | return op.type == "Const" |
| 281 | |
| 282 | |
| 283 | def _constant_tensor_conversion_function(v, dtype=None, name=None, |
no outgoing calls
no test coverage detected