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
  7a6e88ea_1ef2_3f01_b347_e251c2d220d8["shape()"]
  64738472_2c4a_2744_9ad4_b274dbe95ec3["smokeTest()"]
  64738472_2c4a_2744_9ad4_b274dbe95ec3 -->|calls| 7a6e88ea_1ef2_3f01_b347_e251c2d220d8
  style 7a6e88ea_1ef2_3f01_b347_e251c2d220d8 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