Converts the given object to a TensorShape.
(shape)
| 1209 | |
| 1210 | |
| 1211 | def as_shape(shape): |
| 1212 | """Converts the given object to a TensorShape.""" |
| 1213 | if isinstance(shape, TensorShape): |
| 1214 | return shape |
| 1215 | else: |
| 1216 | return TensorShape(shape) |
| 1217 | |
| 1218 | |
| 1219 | def unknown_shape(rank=None, **kwargs): |
no test coverage detected