assertIValueTensor() — pytorch Function Reference
Architecture documentation for the assertIValueTensor() function in PytorchTestBase.java from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 85d31af6_c650_49cb_5d35_da29aa71d31c["assertIValueTensor()"] 2c58f1a1_7185_7051_7e46_cc91578abcf3["testChannelsLast()"] 2c58f1a1_7185_7051_7e46_cc91578abcf3 -->|calls| 85d31af6_c650_49cb_5d35_da29aa71d31c 72f0c23d_afad_bcea_543f_79582b5d361b["testChannelsLast3d()"] 72f0c23d_afad_bcea_543f_79582b5d361b -->|calls| 85d31af6_c650_49cb_5d35_da29aa71d31c 0614de83_8c97_5cf4_d8a7_f1bf9103ea5a["testChannelsLastConv2d()"] 0614de83_8c97_5cf4_d8a7_f1bf9103ea5a -->|calls| 85d31af6_c650_49cb_5d35_da29aa71d31c ea12291d_f0db_4280_2dd1_8660c2cd2df4["testChannelsLastConv3d()"] ea12291d_f0db_4280_2dd1_8660c2cd2df4 -->|calls| 85d31af6_c650_49cb_5d35_da29aa71d31c style 85d31af6_c650_49cb_5d35_da29aa71d31c 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());
}
Domain
Subdomains
Source
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