Home / Function/ numel() — pytorch Function Reference

numel() — pytorch Function Reference

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

Function java AndroidRuntime TensorAPI calls 1 called by 3

Entity Profile

Dependency Diagram

graph TD
  40db4560_92cc_72c7_f2bb_938fd58a0403["numel()"]
  6be65676_2065_aa9b_3e47_fa15f51dd3fe["fromBlobUnsigned()"]
  6be65676_2065_aa9b_3e47_fa15f51dd3fe -->|calls| 40db4560_92cc_72c7_f2bb_938fd58a0403
  fff97aed_e384_1976_ed4b_d94a2ed220dd["fromBlob()"]
  fff97aed_e384_1976_ed4b_d94a2ed220dd -->|calls| 40db4560_92cc_72c7_f2bb_938fd58a0403
  0c327cad_9286_e6d4_167c_ed85851324f7["checkShapeAndDataCapacityConsistency()"]
  0c327cad_9286_e6d4_167c_ed85851324f7 -->|calls| 40db4560_92cc_72c7_f2bb_938fd58a0403
  3326fa3f_4fcb_175c_bb45_ea4994768ac1["checkShape()"]
  40db4560_92cc_72c7_f2bb_938fd58a0403 -->|calls| 3326fa3f_4fcb_175c_bb45_ea4994768ac1
  style 40db4560_92cc_72c7_f2bb_938fd58a0403 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/main/java/org/pytorch/Tensor.java lines 388–390

  public long numel() {
    return numel(this.shape);
  }

Subdomains

Calls

Frequently Asked Questions

What does numel() do?
numel() is a function in the pytorch codebase.
What does numel() call?
numel() calls 1 function(s): checkShape.
What calls numel()?
numel() is called by 3 function(s): checkShapeAndDataCapacityConsistency, fromBlob, fromBlobUnsigned.

Analyze Your Own Codebase

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

Try Supermodel Free