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
  e8e3c609_1dce_e835_9267_ac4034e8a5b9["testEqBool()"]
  fd3711c0_c2a1_0848_309d_ba2ef1be4466["loadModel()"]
  e8e3c609_1dce_e835_9267_ac4034e8a5b9 -->|calls| fd3711c0_c2a1_0848_309d_ba2ef1be4466
  style e8e3c609_1dce_e835_9267_ac4034e8a5b9 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());
    }
  }

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