Home / Function/ toString() — pytorch Function Reference

toString() — pytorch Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c2aaeebb_3e09_4ef1_d065_8e35d49ff0b9["toString()"]
  84782774_5716_4468_9ff1_c032204897d3["Tensor()"]
  c2aaeebb_3e09_4ef1_d065_8e35d49ff0b9 -->|calls| 84782774_5716_4468_9ff1_c032204897d3
  4dddc431_e167_7548_34d1_5575ffcdb665["toString()"]
  c2aaeebb_3e09_4ef1_d065_8e35d49ff0b9 -->|calls| 4dddc431_e167_7548_34d1_5575ffcdb665
  style c2aaeebb_3e09_4ef1_d065_8e35d49ff0b9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/main/java/org/pytorch/Tensor.java lines 577–580

    @Override
    public String toString() {
      return String.format("Tensor(%s, dtype=torch.int32)", Arrays.toString(shape));
    }

Subdomains

Frequently Asked Questions

What does toString() do?
toString() is a function in the pytorch codebase.
What does toString() call?
toString() calls 2 function(s): Tensor, toString.

Analyze Your Own Codebase

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

Try Supermodel Free