bitmapToFloat32Tensor() — pytorch Function Reference
Architecture documentation for the bitmapToFloat32Tensor() function in TensorImageUtils.java from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 075236f7_07e3_50da_aa45_e689eb75aec6["bitmapToFloat32Tensor()"] 05a4bac3_dc7f_c9e5_0d8d_97a63304a618["checkNormMeanArg()"] 075236f7_07e3_50da_aa45_e689eb75aec6 -->|calls| 05a4bac3_dc7f_c9e5_0d8d_97a63304a618 e79553c3_aa4f_f1b9_50e7_c07930a30ab1["checkNormStdArg()"] 075236f7_07e3_50da_aa45_e689eb75aec6 -->|calls| e79553c3_aa4f_f1b9_50e7_c07930a30ab1 033b0d29_939c_36ed_1162_fbed5ef045ff["allocateFloatBuffer()"] 075236f7_07e3_50da_aa45_e689eb75aec6 -->|calls| 033b0d29_939c_36ed_1162_fbed5ef045ff 146c6cff_527c_f43e_6edc_682205be9eff["bitmapToFloatBuffer()"] 075236f7_07e3_50da_aa45_e689eb75aec6 -->|calls| 146c6cff_527c_f43e_6edc_682205be9eff fff97aed_e384_1976_ed4b_d94a2ed220dd["fromBlob()"] 075236f7_07e3_50da_aa45_e689eb75aec6 -->|calls| fff97aed_e384_1976_ed4b_d94a2ed220dd style 075236f7_07e3_50da_aa45_e689eb75aec6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
android/pytorch_android_torchvision/src/main/java/org/pytorch/torchvision/TensorImageUtils.java lines 32–42
public static Tensor bitmapToFloat32Tensor(
final Bitmap bitmap,
final float[] normMeanRGB,
final float normStdRGB[],
final MemoryFormat memoryFormat) {
checkNormMeanArg(normMeanRGB);
checkNormStdArg(normStdRGB);
return bitmapToFloat32Tensor(
bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), normMeanRGB, normStdRGB, memoryFormat);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bitmapToFloat32Tensor() do?
bitmapToFloat32Tensor() is a function in the pytorch codebase.
What does bitmapToFloat32Tensor() call?
bitmapToFloat32Tensor() calls 5 function(s): allocateFloatBuffer, bitmapToFloatBuffer, checkNormMeanArg, checkNormStdArg, fromBlob.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free