testAliasWithOffset() — pytorch Function Reference
Architecture documentation for the testAliasWithOffset() function in PytorchTestBase.java from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 7893e680_81ba_a15f_d4f7_ffcbfb500726["testAliasWithOffset()"] 9f728842_eeeb_dcbf_a87a_1decf4b380f8["loadModel()"] 7893e680_81ba_a15f_d4f7_ffcbfb500726 -->|calls| 9f728842_eeeb_dcbf_a87a_1decf4b380f8 style 7893e680_81ba_a15f_d4f7_ffcbfb500726 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
android/pytorch_android/src/androidTest/java/org/pytorch/PytorchTestBase.java lines 295–303
@Test
public void testAliasWithOffset() throws IOException {
final Module module = loadModel(TEST_MODULE_ASSET_NAME);
final IValue output = module.runMethod("testAliasWithOffset");
assertTrue(output.isTensorList());
Tensor[] tensors = output.toTensorList();
assertEquals(100, tensors[0].getDataAsLongArray()[0]);
assertEquals(200, tensors[1].getDataAsLongArray()[0]);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testAliasWithOffset() do?
testAliasWithOffset() is a function in the pytorch codebase.
What does testAliasWithOffset() call?
testAliasWithOffset() 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