Home / Function/ testEqInt() — pytorch Function Reference

testEqInt() — pytorch Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  82902fed_bef4_eff2_6aa5_f6d8e733b00a["testEqInt()"]
  fd3711c0_c2a1_0848_309d_ba2ef1be4466["loadModel()"]
  82902fed_bef4_eff2_6aa5_f6d8e733b00a -->|calls| fd3711c0_c2a1_0848_309d_ba2ef1be4466
  style 82902fed_bef4_eff2_6aa5_f6d8e733b00a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/androidTest/java/org/pytorch/PytorchTestBase.java lines 40–51

  @Test
  public void testEqInt() throws IOException {
    final Module module = loadModel(TEST_MODULE_ASSET_NAME);
    for (long value : new long[] {Long.MIN_VALUE, -1024, -1, 0, 1, 1024, Long.MAX_VALUE}) {
      final IValue input = IValue.from(value);
      assertTrue(input.isLong());
      assertTrue(value == input.toLong());
      final IValue output = module.runMethod("eqInt", input);
      assertTrue(output.isLong());
      assertTrue(value == output.toLong());
    }
  }

Subdomains

Calls

Frequently Asked Questions

What does testEqInt() do?
testEqInt() is a function in the pytorch codebase.
What does testEqInt() call?
testEqInt() calls 1 function(s): loadModel.

Analyze Your Own Codebase

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

Try Supermodel Free