| 1767 | } |
| 1768 | |
| 1769 | Tensor Contiguous(const Tensor &in) { |
| 1770 | Tensor out(in); |
| 1771 | return out.Contiguous(); |
| 1772 | } |
| 1773 | |
| 1774 | // if tensor is not transposed yet, we change the shape and generate new stride |
| 1775 | // if tensor is already transposed, we reallocate the memory and generate stride |
no outgoing calls
no test coverage detected