About 1,340,000 results
Open links in new tab
  1. What does .contiguous () do in PyTorch? - Stack Overflow

    Feb 21, 2018 · What does x.contiguous () do for a tensor x?A one-dimensional array [0, 1, 2, 3, 4] is contiguous if its items are laid out in memory next to each other just like ...

  2. What is the difference between contiguous and non-contiguous …

    Nov 18, 2014 · A contiguous array is just an array stored in an unbroken block of memory: to access the next value in the array, we just move to the next memory address. Consider the 2D …

  3. Difference between 'consecutive' and 'contiguous'? [closed]

    Apr 16, 2017 · A production line that makes sweet rolls first takes one, infinitely long, contiguous roll, and then chops it into separate, bite-sized rolls, packing consecutive small rolls into …

  4. What functions or modules require contiguous input?

    Nov 4, 2021 · As I understand, you need to call tensor.contiguous() explicitly whenever some function or module needs a contiguous tensor. Otherwise you get exceptions like: …

  5. Pytorch: copy.deepcopy vs torch.tensor.contiguous()?

    Jan 26, 2021 · Here we can easily see that .contiguous() method created contiguous tensor from non-contiguous tensor while deepcopy method just copied the data without converting it to …

  6. In PyTorch, what makes a tensor have non-contiguous memory?

    Jan 8, 2019 · I think your title contiguous memory is a bit misleading. As I understand, contiguous in PyTorch means if the neighboring elements in the tensor are actually next to each other in …

  7. arrays - What is contiguous subarray - Stack Overflow

    May 29, 2018 · Still not very clear. Subarray = "any part or section of an array", contiguous = "sharing a common border; touching". Is contiguous referring to the array indices or the …

  8. AttributeError: 'Flags' object has no attribute 'c_contiguous'

    Dec 6, 2023 · AttributeError: 'Flags' object has no attribute 'c_contiguous' Asked 1 year, 10 months ago Modified 1 year, 4 months ago Viewed 7k times

  9. How to group a dataset by contiguous items? [duplicate]

    Oct 18, 2025 · How to group a dataset by contiguous items? [duplicate] Asked 12 years, 8 months ago Modified 12 days ago Viewed 5k times

  10. is memory contiguously allocated for arraylists? - Stack Overflow

    Jan 30, 2017 · Lastly contiguous memory is typically a concern of high-performance native applications. In Java memory is managed by the JVM and is borrowed from the underlying …