Home / Function/ getDataAsByteArray() — pytorch Function Reference

getDataAsByteArray() — pytorch Function Reference

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

Function java AndroidRuntime JavaAPI calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  a9e09454_6c8f_184f_1800_ab94ef180880["getDataAsByteArray()"]
  012a55a6_b5d1_a517_c948_6ee87fabf5df["getDataAsByteArray()"]
  012a55a6_b5d1_a517_c948_6ee87fabf5df -->|calls| a9e09454_6c8f_184f_1800_ab94ef180880
  012a55a6_b5d1_a517_c948_6ee87fabf5df["getDataAsByteArray()"]
  a9e09454_6c8f_184f_1800_ab94ef180880 -->|calls| 012a55a6_b5d1_a517_c948_6ee87fabf5df
  style a9e09454_6c8f_184f_1800_ab94ef180880 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/main/java/org/pytorch/Tensor.java lines 537–543

    @Override
    public byte[] getDataAsByteArray() {
      data.rewind();
      byte[] arr = new byte[data.remaining()];
      data.get(arr);
      return arr;
    }

Subdomains

Frequently Asked Questions

What does getDataAsByteArray() do?
getDataAsByteArray() is a function in the pytorch codebase.
What does getDataAsByteArray() call?
getDataAsByteArray() calls 1 function(s): getDataAsByteArray.
What calls getDataAsByteArray()?
getDataAsByteArray() is called by 1 function(s): getDataAsByteArray.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free