Home / Function/ testOptionalIntIsNone() — pytorch Function Reference

testOptionalIntIsNone() — pytorch Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  67907250_27df_f15e_7c2e_5bdea7352f9c["testOptionalIntIsNone()"]
  9f728842_eeeb_dcbf_a87a_1decf4b380f8["loadModel()"]
  67907250_27df_f15e_7c2e_5bdea7352f9c -->|calls| 9f728842_eeeb_dcbf_a87a_1decf4b380f8
  style 67907250_27df_f15e_7c2e_5bdea7352f9c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/androidTest/java/org/pytorch/PytorchTestBase.java lines 180–186

  @Test
  public void testOptionalIntIsNone() throws IOException {
    final Module module = loadModel(TEST_MODULE_ASSET_NAME);

    assertFalse(module.runMethod("optionalIntIsNone", IValue.from(1l)).toBool());
    assertTrue(module.runMethod("optionalIntIsNone", IValue.optionalNull()).toBool());
  }

Domain

Subdomains

Calls

Frequently Asked Questions

What does testOptionalIntIsNone() do?
testOptionalIntIsNone() is a function in the pytorch codebase.
What does testOptionalIntIsNone() call?
testOptionalIntIsNone() 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