Home / Function/ contiguousChannelsLast() — pytorch Function Reference

contiguousChannelsLast() — pytorch Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  e9d9008b_596d_849a_568f_32b7898a1abd["contiguousChannelsLast()"]
  c800a173_9551_2901_c091_d157ae22ae5a["contiguous()"]
  e9d9008b_596d_849a_568f_32b7898a1abd -->|calls| c800a173_9551_2901_c091_d157ae22ae5a
  style e9d9008b_596d_849a_568f_32b7898a1abd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/generate_test_torchscripts.py lines 146–147

    def contiguousChannelsLast(self, x: Tensor) -> Tensor:
        return x.contiguous(memory_format=torch.channels_last)

Domain

Subdomains

Calls

Frequently Asked Questions

What does contiguousChannelsLast() do?
contiguousChannelsLast() is a function in the pytorch codebase.
What does contiguousChannelsLast() call?
contiguousChannelsLast() calls 1 function(s): contiguous.

Analyze Your Own Codebase

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

Try Supermodel Free