Home / Function/ testIntEq0None() — pytorch Function Reference

testIntEq0None() — pytorch Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

android/pytorch_android/src/androidTest/java/org/pytorch/PytorchTestBase.java lines 188–194

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

    assertTrue(module.runMethod("intEq0None", IValue.from(0l)).isNull());
    assertTrue(module.runMethod("intEq0None", IValue.from(1l)).toLong() == 1l);
  }

Domain

Subdomains

Calls

Frequently Asked Questions

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