contiguous

What does .contiguous() do in PyTorch?

What does .contiguous() do in PyTorch? Question: What does x.contiguous() do for a tensor x? Asked By: MBT || Source Answers: From the pytorch documentation: contiguous() → Tensor Returns a contiguous tensor containing the same data as self tensor. If self tensor is contiguous, this function returns the self tensor. Where contiguous here means not …

Total answers: 8