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
  45c3c069_9aa8_f020_71b8_bcc433f7d6e6["toString()"]
  84782774_5716_4468_9ff1_c032204897d3["Tensor()"]
  45c3c069_9aa8_f020_71b8_bcc433f7d6e6 -->|calls| 84782774_5716_4468_9ff1_c032204897d3
  4dddc431_e167_7548_34d1_5575ffcdb665["toString()"]
  45c3c069_9aa8_f020_71b8_bcc433f7d6e6 -->|calls| 4dddc431_e167_7548_34d1_5575ffcdb665
  style 45c3c069_9aa8_f020_71b8_bcc433f7d6e6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/main/java/org/pytorch/Tensor.java lines 673–676

    @Override
    public String toString() {
      return String.format("Tensor(%s, dtype=torch.float64)", 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