testStr3Concat() — pytorch Function Reference
Architecture documentation for the testStr3Concat() function in PytorchTestBase.java from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 5cfffd29_cfb0_f46e_982f_8d4963fb47ad["testStr3Concat()"] fd3711c0_c2a1_0848_309d_ba2ef1be4466["loadModel()"] 5cfffd29_cfb0_f46e_982f_8d4963fb47ad -->|calls| fd3711c0_c2a1_0848_309d_ba2ef1be4466 style 5cfffd29_cfb0_f46e_982f_8d4963fb47ad fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
android/pytorch_android/src/androidTest/java/org/pytorch/PytorchTestBase.java lines 262–281
@Test
public void testStr3Concat() 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("str3Concat", input);
assertTrue(output.isString());
String expectedOutput =
new StringBuilder().append(value).append(value).append(value).toString();
assertTrue(expectedOutput.equals(output.toStr()));
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testStr3Concat() do?
testStr3Concat() is a function in the pytorch codebase.
What does testStr3Concat() call?
testStr3Concat() 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