(shape)
| 124 | |
| 125 | |
| 126 | def _maybe_tensor_shape_from_tensor(shape): |
| 127 | if isinstance(shape, ops.Tensor): |
| 128 | return tensor_shape.as_shape(tensor_util.constant_value(shape)) |
| 129 | else: |
| 130 | return shape |
| 131 | |
| 132 | |
| 133 | def _should_cache(): |
no outgoing calls
no test coverage detected