(self)
| 158 | |
| 159 | @property |
| 160 | def _ctx(self): |
| 161 | # N.B. This is needed to support calling py_func with GPU tensors, |
| 162 | # which must be transferred to CPU if used in any of the NumPy APIs. |
| 163 | context.ensure_initialized() |
| 164 | return context.context()._handle # pylint: disable=protected-access |
| 165 | |
| 166 | def insert(self, func): |
| 167 | """Registers `func` and returns a unique token for this entry.""" |
nothing calls this directly
no test coverage detected