allocateLongBuffer() — pytorch Function Reference
Architecture documentation for the allocateLongBuffer() function in Tensor.java from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD e10874b1_92f5_f5c3_32af_c73818e16104["allocateLongBuffer()"] fff97aed_e384_1976_ed4b_d94a2ed220dd["fromBlob()"] fff97aed_e384_1976_ed4b_d94a2ed220dd -->|calls| e10874b1_92f5_f5c3_32af_c73818e16104 style e10874b1_92f5_f5c3_32af_c73818e16104 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
android/pytorch_android/src/main/java/org/pytorch/Tensor.java lines 91–95
public static LongBuffer allocateLongBuffer(int numElements) {
return ByteBuffer.allocateDirect(numElements * LONG_SIZE_BYTES)
.order(ByteOrder.nativeOrder())
.asLongBuffer();
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does allocateLongBuffer() do?
allocateLongBuffer() is a function in the pytorch codebase.
What calls allocateLongBuffer()?
allocateLongBuffer() is called by 1 function(s): fromBlob.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free