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
  b4f05565_cdd2_d1a2_3147_08a459b7ecdb["toString()"]
  ebadc71e_cab5_792b_ebff_10cde5eff184["Tensor()"]
  b4f05565_cdd2_d1a2_3147_08a459b7ecdb -->|calls| ebadc71e_cab5_792b_ebff_10cde5eff184
  41562b24_58d1_a5d5_8126_b795ada13cdc["toString()"]
  b4f05565_cdd2_d1a2_3147_08a459b7ecdb -->|calls| 41562b24_58d1_a5d5_8126_b795ada13cdc
  style b4f05565_cdd2_d1a2_3147_08a459b7ecdb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/main/java/org/pytorch/Tensor.java lines 641–644

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