Home / Function/ contiguous() — pytorch Function Reference

contiguous() — pytorch Function Reference

Architecture documentation for the contiguous() function in generate_test_torchscripts.py from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  0b7e2e4a_6531_1537_a6f4_db8a7938bd78["contiguous()"]
  c218e441_44bb_1272_16f4_608fe92f50dd["conv2d()"]
  c218e441_44bb_1272_16f4_608fe92f50dd -->|calls| 0b7e2e4a_6531_1537_a6f4_db8a7938bd78
  c7b1c2e9_7a80_5b06_2ade_87c265f88be7["conv3d()"]
  c7b1c2e9_7a80_5b06_2ade_87c265f88be7 -->|calls| 0b7e2e4a_6531_1537_a6f4_db8a7938bd78
  68289ba0_388c_2a75_f678_3b01b8fb9605["contiguousChannelsLast()"]
  68289ba0_388c_2a75_f678_3b01b8fb9605 -->|calls| 0b7e2e4a_6531_1537_a6f4_db8a7938bd78
  51410daa_c88a_f6c8_53e0_6f80fb85dbae["contiguousChannelsLast3d()"]
  51410daa_c88a_f6c8_53e0_6f80fb85dbae -->|calls| 0b7e2e4a_6531_1537_a6f4_db8a7938bd78
  style 0b7e2e4a_6531_1537_a6f4_db8a7938bd78 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/generate_test_torchscripts.py lines 142–143

    def contiguous(self, x: Tensor) -> Tensor:
        return x.contiguous()

Subdomains

Frequently Asked Questions

What does contiguous() do?
contiguous() is a function in the pytorch codebase.
What calls contiguous()?
contiguous() is called by 4 function(s): contiguousChannelsLast, contiguousChannelsLast3d, conv2d, conv3d.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free