r"""Sets whether tensor.shape returns a tensor instead of a tuple
(option: bool)
| 17 | |
| 18 | |
| 19 | def set_symbolic_shape(option: bool): |
| 20 | r"""Sets whether tensor.shape returns a tensor instead of a tuple""" |
| 21 | global _use_symbolic_shape |
| 22 | _org = _use_symbolic_shape |
| 23 | _use_symbolic_shape = option |
| 24 | return _org |
| 25 | |
| 26 | |
| 27 | def use_xla_backend() -> bool: |
no outgoing calls