Home / Function/ testEqString() — pytorch Function Reference

testEqString() — pytorch Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

android/pytorch_android/src/androidTest/java/org/pytorch/PytorchTestBase.java lines 243–260

  @Test
  public void testEqString() throws IOException {
    final Module module = loadModel(TEST_MODULE_ASSET_NAME);
    String[] values =
        new String[] {
          "smoketest",
          "проверка не латинских символов", // not latin symbols check
          "#@$!@#)($*!@#$)(!@*#$"
        };
    for (String value : values) {
      final IValue input = IValue.from(value);
      assertTrue(input.isString());
      assertTrue(value.equals(input.toStr()));
      final IValue output = module.runMethod("eqStr", input);
      assertTrue(output.isString());
      assertTrue(value.equals(output.toStr()));
    }
  }

Subdomains

Calls

Frequently Asked Questions

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