testForwardNull() — pytorch Function Reference
Architecture documentation for the testForwardNull() function in PytorchTestBase.java from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 4d9f6bfa_90d1_e435_d61b_cc27f466b792["testForwardNull()"] 9f728842_eeeb_dcbf_a87a_1decf4b380f8["loadModel()"] 4d9f6bfa_90d1_e435_d61b_cc27f466b792 -->|calls| 9f728842_eeeb_dcbf_a87a_1decf4b380f8 style 4d9f6bfa_90d1_e435_d61b_cc27f466b792 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
android/pytorch_android/src/androidTest/java/org/pytorch/PytorchTestBase.java lines 18–25
@Test
public void testForwardNull() throws IOException {
final Module module = loadModel(TEST_MODULE_ASSET_NAME);
final IValue input = IValue.from(Tensor.fromBlob(Tensor.allocateByteBuffer(1), new long[] {1}));
assertTrue(input.isTensor());
final IValue output = module.forward(input);
assertTrue(output.isNull());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testForwardNull() do?
testForwardNull() is a function in the pytorch codebase.
What does testForwardNull() call?
testForwardNull() 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