Home / Function/ allocateDoubleBuffer() — pytorch Function Reference

allocateDoubleBuffer() — pytorch Function Reference

Architecture documentation for the allocateDoubleBuffer() function in Tensor.java from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  79b9f073_63e1_e4d8_3728_fb9536ac314c["allocateDoubleBuffer()"]
  fff97aed_e384_1976_ed4b_d94a2ed220dd["fromBlob()"]
  fff97aed_e384_1976_ed4b_d94a2ed220dd -->|calls| 79b9f073_63e1_e4d8_3728_fb9536ac314c
  style 79b9f073_63e1_e4d8_3728_fb9536ac314c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/main/java/org/pytorch/Tensor.java lines 103–107

  public static DoubleBuffer allocateDoubleBuffer(int numElements) {
    return ByteBuffer.allocateDirect(numElements * DOUBLE_SIZE_BYTES)
        .order(ByteOrder.nativeOrder())
        .asDoubleBuffer();
  }

Subdomains

Called By

Frequently Asked Questions

What does allocateDoubleBuffer() do?
allocateDoubleBuffer() is a function in the pytorch codebase.
What calls allocateDoubleBuffer()?
allocateDoubleBuffer() 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