(e)
| 127 | @classmethod |
| 128 | def __torch_dispatch__(cls, func, types, args=(), kwargs=None): |
| 129 | def unwrap(e): |
| 130 | ret = e |
| 131 | if isinstance(e, UnwrapTensor): |
| 132 | ret = e._tensor.cos() |
| 133 | |
| 134 | return ret |
| 135 | |
| 136 | args = tree_map(unwrap, args) |
| 137 | kwargs = tree_map(unwrap, kwargs) |
nothing calls this directly
no test coverage detected