testStr3Concat() — pytorch Function Reference
Architecture documentation for the testStr3Concat() function in PytorchTestBase.java from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD f1aeb224_1aaa_aad1_f117_5509697bd46f["testStr3Concat()"] 9f728842_eeeb_dcbf_a87a_1decf4b380f8["loadModel()"] f1aeb224_1aaa_aad1_f117_5509697bd46f -->|calls| 9f728842_eeeb_dcbf_a87a_1decf4b380f8 style f1aeb224_1aaa_aad1_f117_5509697bd46f 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