checkOutBufferCapacity() — pytorch Function Reference
Architecture documentation for the checkOutBufferCapacity() function in TensorImageUtils.java from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 985ac895_a665_e4e5_3d8c_817c2e044489["checkOutBufferCapacity()"] cb0ec3bf_804a_0d54_e6cf_c94ea97cada8["bitmapToFloatBuffer()"] cb0ec3bf_804a_0d54_e6cf_c94ea97cada8 -->|calls| 985ac895_a665_e4e5_3d8c_817c2e044489 96f1f166_e465_73ae_edbc_0841f2cf1414["imageYUV420CenterCropToFloatBuffer()"] 96f1f166_e465_73ae_edbc_0841f2cf1414 -->|calls| 985ac895_a665_e4e5_3d8c_817c2e044489 style 985ac895_a665_e4e5_3d8c_817c2e044489 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
android/pytorch_android_torchvision/src/main/java/org/pytorch/torchvision/TensorImageUtils.java lines 365–370
private static void checkOutBufferCapacity(
FloatBuffer outBuffer, int outBufferOffset, int tensorWidth, int tensorHeight) {
if (outBufferOffset + 3 * tensorWidth * tensorHeight > outBuffer.capacity()) {
throw new IllegalStateException("Buffer underflow");
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does checkOutBufferCapacity() do?
checkOutBufferCapacity() is a function in the pytorch codebase.
What calls checkOutBufferCapacity()?
checkOutBufferCapacity() is called by 2 function(s): bitmapToFloatBuffer, imageYUV420CenterCropToFloatBuffer.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free