testEqString() — pytorch Function Reference
Architecture documentation for the testEqString() function in PytorchTestBase.java from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 616afe1b_dc77_7634_34af_73596c150971["testEqString()"] 9f728842_eeeb_dcbf_a87a_1decf4b380f8["loadModel()"] 616afe1b_dc77_7634_34af_73596c150971 -->|calls| 9f728842_eeeb_dcbf_a87a_1decf4b380f8 style 616afe1b_dc77_7634_34af_73596c150971 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()));
}
}
Domain
Subdomains
Calls
Source
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