smokeTest() — pytorch Function Reference
Architecture documentation for the smokeTest() function in TorchVisionInstrumentedTests.java from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD a4a134d1_ce6a_150c_b030_3bd637a20767["smokeTest()"] d0accb93_bb63_5923_4f95_58b7838a0fd5["shape()"] a4a134d1_ce6a_150c_b030_3bd637a20767 -->|calls| d0accb93_bb63_5923_4f95_58b7838a0fd5 style a4a134d1_ce6a_150c_b030_3bd637a20767 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
android/pytorch_android_torchvision/src/androidTest/java/org/pytorch/torchvision/TorchVisionInstrumentedTests.java lines 14–23
@Test
public void smokeTest() {
Bitmap bitmap = Bitmap.createBitmap(320, 240, Bitmap.Config.ARGB_8888);
Tensor tensor =
TensorImageUtils.bitmapToFloat32Tensor(
bitmap,
TensorImageUtils.TORCHVISION_NORM_MEAN_RGB,
TensorImageUtils.TORCHVISION_NORM_STD_RGB);
assertArrayEquals(new long[] {1l, 3l, 240l, 320l}, tensor.shape());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does smokeTest() do?
smokeTest() is a function in the pytorch codebase.
What does smokeTest() call?
smokeTest() calls 1 function(s): shape.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free