r"""Ensures a contiguous memory layout for all attributes :obj:`*keys`. If :obj:`*keys` is not given, all present attributes are ensured to have a contiguous memory layout.
(self, *keys)
| 115 | return self |
| 116 | |
| 117 | def contiguous(self, *keys): |
| 118 | r"""Ensures a contiguous memory layout for all attributes :obj:`*keys`. |
| 119 | If :obj:`*keys` is not given, all present attributes are ensured to |
| 120 | have a contiguous memory layout.""" |
| 121 | return self.apply(lambda x: x.contiguous(), *keys) |
| 122 | |
| 123 | def to(self, device, *keys): |
| 124 | r"""Performs tensor dtype and/or device conversion to all attributes |
no test coverage detected