Home / Function/ testEqBool() — pytorch Function Reference

testEqBool() — pytorch Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  1ab55162_96f1_c4d5_eeef_321bc50ce11f["testEqBool()"]
  9f728842_eeeb_dcbf_a87a_1decf4b380f8["loadModel()"]
  1ab55162_96f1_c4d5_eeef_321bc50ce11f -->|calls| 9f728842_eeeb_dcbf_a87a_1decf4b380f8
  style 1ab55162_96f1_c4d5_eeef_321bc50ce11f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/androidTest/java/org/pytorch/PytorchTestBase.java lines 27–38

  @Test
  public void testEqBool() throws IOException {
    final Module module = loadModel(TEST_MODULE_ASSET_NAME);
    for (boolean value : new boolean[] {false, true}) {
      final IValue input = IValue.from(value);
      assertTrue(input.isBool());
      assertTrue(value == input.toBool());
      final IValue output = module.runMethod("eqBool", input);
      assertTrue(output.isBool());
      assertTrue(value == output.toBool());
    }
  }

Domain

Subdomains

Calls

Frequently Asked Questions

What does testEqBool() do?
testEqBool() is a function in the pytorch codebase.
What does testEqBool() call?
testEqBool() 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