Home / Function/ runModel() — pytorch Function Reference

runModel() — pytorch Function Reference

Architecture documentation for the runModel() function in PytorchTestBase.java from the pytorch codebase.

Function java CoreTensor Boxing calls 1 called by 33

Entity Profile

Dependency Diagram

graph TD
  ef502a7f_23e9_0617_2847_5242ab35437c["runModel()"]
  dca2451f_dfaf_e255_b89d_fb55bcacb03d["testPointwiseOps()"]
  dca2451f_dfaf_e255_b89d_fb55bcacb03d -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  3da0bb9b_20dd_5be1_a48a_e86709da2fe4["testReductionOps()"]
  3da0bb9b_20dd_5be1_a48a_e86709da2fe4 -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  0b9c6274_c97d_6201_3bd7_d90c4889b490["testComparisonOps()"]
  0b9c6274_c97d_6201_3bd7_d90c4889b490 -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  bccc2830_7eef_44c6_1cde_591576b3635c["testOtherMathOps()"]
  bccc2830_7eef_44c6_1cde_591576b3635c -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  d3f948b2_3197_dd50_f485_85b39aa63ca7["testSpectralOps()"]
  d3f948b2_3197_dd50_f485_85b39aa63ca7 -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  9b0ba1d3_fd85_ae0a_7843_b63d8ed30552["testBlasLapackOps()"]
  9b0ba1d3_fd85_ae0a_7843_b63d8ed30552 -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  04a5f90c_ada4_c043_9704_31fa430337b5["testSamplingOps()"]
  04a5f90c_ada4_c043_9704_31fa430337b5 -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  300fc617_8f86_666b_ce29_3db7637e8cc4["testTensorOps()"]
  300fc617_8f86_666b_ce29_3db7637e8cc4 -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  e1dc28e3_d507_8d20_512e_5755eae01e16["testTensorCreationOps()"]
  e1dc28e3_d507_8d20_512e_5755eae01e16 -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  fdc276fe_2f54_9f94_bdf2_8868285e7867["testTensorIndexingOps()"]
  fdc276fe_2f54_9f94_bdf2_8868285e7867 -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  eb6ebdb4_8f9a_2737_cfcb_5330088bc454["testTensorTypingOps()"]
  eb6ebdb4_8f9a_2737_cfcb_5330088bc454 -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  2fc514e6_2083_c77f_7131_d105b957072f["testTensorViewOps()"]
  2fc514e6_2083_c77f_7131_d105b957072f -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  7b6a8e60_1639_2fd0_1984_b22fcf93033f["testConvolutionOps()"]
  7b6a8e60_1639_2fd0_1984_b22fcf93033f -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  3fcd5c10_956a_fcc9_1501_0ee14282cb7b["testPoolingOps()"]
  3fcd5c10_956a_fcc9_1501_0ee14282cb7b -->|calls| ef502a7f_23e9_0617_2847_5242ab35437c
  style ef502a7f_23e9_0617_2847_5242ab35437c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/androidTest/java/org/pytorch/PytorchTestBase.java lines 683–691

  void runModel(final String name) throws IOException {
    final Module storage_module = loadModel(name + ".ptl");
    storage_module.forward();

    // TODO enable this once the on-the-fly script is ready
    // final Module on_the_fly_module = loadModel(name + "_temp.ptl");
    // on_the_fly_module.forward();
    assertTrue(true);
  }

Domain

Subdomains

Calls

Frequently Asked Questions

What does runModel() do?
runModel() is a function in the pytorch codebase.
What does runModel() call?
runModel() calls 1 function(s): loadModel.
What calls runModel()?
runModel() is called by 33 function(s): testActivationOps, testBlasLapackOps, testComparisonOps, testConvolutionOps, testDistanceFunctionOps, testDropoutOps, testDynamicQuantOps, testFusedQuantOps, and 25 more.

Analyze Your Own Codebase

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

Try Supermodel Free