Home / Function/ shape() — pytorch Function Reference

shape() — pytorch Function Reference

Architecture documentation for the shape() function in Tensor.java from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  d0accb93_bb63_5923_4f95_58b7838a0fd5["shape()"]
  a4a134d1_ce6a_150c_b030_3bd637a20767["smokeTest()"]
  a4a134d1_ce6a_150c_b030_3bd637a20767 -->|calls| d0accb93_bb63_5923_4f95_58b7838a0fd5
  style d0accb93_bb63_5923_4f95_58b7838a0fd5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/main/java/org/pytorch/Tensor.java lines 403–405

  public long[] shape() {
    return Arrays.copyOf(shape, shape.length);
  }

Subdomains

Called By

Frequently Asked Questions

What does shape() do?
shape() is a function in the pytorch codebase.
What calls shape()?
shape() is called by 1 function(s): smokeTest.

Analyze Your Own Codebase

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

Try Supermodel Free