Home / Function/ assertIValueTensor() — pytorch Function Reference

assertIValueTensor() — pytorch Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  076e553b_79aa_4059_bfb2_6682a21ae462["assertIValueTensor()"]
  e1bd8518_ad6a_02fc_6465_54e0b305a8a6["testChannelsLast()"]
  e1bd8518_ad6a_02fc_6465_54e0b305a8a6 -->|calls| 076e553b_79aa_4059_bfb2_6682a21ae462
  aff8d52f_206b_e498_62ce_be4e195eaa12["testChannelsLast3d()"]
  aff8d52f_206b_e498_62ce_be4e195eaa12 -->|calls| 076e553b_79aa_4059_bfb2_6682a21ae462
  c8c5fea2_b14a_8035_e2bd_13d0bf71824a["testChannelsLastConv2d()"]
  c8c5fea2_b14a_8035_e2bd_13d0bf71824a -->|calls| 076e553b_79aa_4059_bfb2_6682a21ae462
  4dd563d1_31f4_a7b3_750a_66a63f8affdc["testChannelsLastConv3d()"]
  4dd563d1_31f4_a7b3_750a_66a63f8affdc -->|calls| 076e553b_79aa_4059_bfb2_6682a21ae462
  style 076e553b_79aa_4059_bfb2_6682a21ae462 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/androidTest/java/org/pytorch/PytorchTestBase.java lines 671–681

  static void assertIValueTensor(
      final IValue ivalue,
      final MemoryFormat memoryFormat,
      final long[] expectedShape,
      final long[] expectedData) {
    assertTrue(ivalue.isTensor());
    Tensor t = ivalue.toTensor();
    assertEquals(memoryFormat, t.memoryFormat());
    assertArrayEquals(expectedShape, t.shape());
    assertArrayEquals(expectedData, t.getDataAsLongArray());
  }

Subdomains

Frequently Asked Questions

What does assertIValueTensor() do?
assertIValueTensor() is a function in the pytorch codebase.
What calls assertIValueTensor()?
assertIValueTensor() is called by 4 function(s): testChannelsLast, testChannelsLast3d, testChannelsLastConv2d, testChannelsLastConv3d.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free