(self, a, axis=None)
| 1797 | ), f"Device discrepancy. First input is on {str(a_device)}, whereas second input is on {str(b_device)}" |
| 1798 | |
| 1799 | def squeeze(self, a, axis=None): |
| 1800 | return jnp.squeeze(a, axis=axis) |
| 1801 | |
| 1802 | def unsqueeze(self, a, axis): |
| 1803 | return jnp.expand_dims(a, axis=axis) |