(self, index)
| 110 | |
| 111 | @wraps(getitem_fn) |
| 112 | def wrapper(self, index): |
| 113 | if not isinstance(index, int): |
| 114 | has_dim = True |
| 115 | self._input_dim = index[0] |
| 116 | self.enable_mosaic = index[2] |
| 117 | index = index[1] |
| 118 | else: |
| 119 | has_dim = False |
| 120 | |
| 121 | ret_val = getitem_fn(self, index) |
| 122 | |
| 123 | if has_dim: |
| 124 | del self._input_dim |
| 125 | |
| 126 | return ret_val |
| 127 | |
| 128 | return wrapper |
nothing calls this directly
no outgoing calls
no test coverage detected