Home / Function/ testAliasWithOffset() — pytorch Function Reference

testAliasWithOffset() — pytorch Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  93abaaaa_9845_56e4_a6ee_049cda868736["testAliasWithOffset()"]
  fd3711c0_c2a1_0848_309d_ba2ef1be4466["loadModel()"]
  93abaaaa_9845_56e4_a6ee_049cda868736 -->|calls| fd3711c0_c2a1_0848_309d_ba2ef1be4466
  style 93abaaaa_9845_56e4_a6ee_049cda868736 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]);
  }

Subdomains

Calls

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