Home / Function/ fromBlobUnsigned() — pytorch Function Reference

fromBlobUnsigned() — pytorch Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6be65676_2065_aa9b_3e47_fa15f51dd3fe["fromBlobUnsigned()"]
  71889387_1e63_1ff3_2450_e3018d61b4ee["checkArgument()"]
  6be65676_2065_aa9b_3e47_fa15f51dd3fe -->|calls| 71889387_1e63_1ff3_2450_e3018d61b4ee
  3326fa3f_4fcb_175c_bb45_ea4994768ac1["checkShape()"]
  6be65676_2065_aa9b_3e47_fa15f51dd3fe -->|calls| 3326fa3f_4fcb_175c_bb45_ea4994768ac1
  0c327cad_9286_e6d4_167c_ed85851324f7["checkShapeAndDataCapacityConsistency()"]
  6be65676_2065_aa9b_3e47_fa15f51dd3fe -->|calls| 0c327cad_9286_e6d4_167c_ed85851324f7
  44197d93_0097_bacf_1740_09dc0acadd65["allocateByteBuffer()"]
  6be65676_2065_aa9b_3e47_fa15f51dd3fe -->|calls| 44197d93_0097_bacf_1740_09dc0acadd65
  40db4560_92cc_72c7_f2bb_938fd58a0403["numel()"]
  6be65676_2065_aa9b_3e47_fa15f51dd3fe -->|calls| 40db4560_92cc_72c7_f2bb_938fd58a0403
  ebc1f8d6_83ff_3cd6_75f5_92e4feb368ad["Tensor_uint8()"]
  6be65676_2065_aa9b_3e47_fa15f51dd3fe -->|calls| ebc1f8d6_83ff_3cd6_75f5_92e4feb368ad
  style 6be65676_2065_aa9b_3e47_fa15f51dd3fe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/main/java/org/pytorch/Tensor.java lines 116–124

  public static Tensor fromBlobUnsigned(byte[] data, long[] shape, MemoryFormat memoryFormat) {
    checkArgument(data != null, ERROR_MSG_DATA_ARRAY_NOT_NULL);
    checkArgument(shape != null, ERROR_MSG_SHAPE_NOT_NULL);
    checkShape(shape);
    checkShapeAndDataCapacityConsistency(data.length, shape);
    final ByteBuffer byteBuffer = allocateByteBuffer((int) numel(shape));
    byteBuffer.put(data);
    return new Tensor_uint8(byteBuffer, shape, memoryFormat);
  }

Subdomains

Frequently Asked Questions

What does fromBlobUnsigned() do?
fromBlobUnsigned() is a function in the pytorch codebase.
What does fromBlobUnsigned() call?
fromBlobUnsigned() calls 6 function(s): Tensor_uint8, allocateByteBuffer, checkArgument, checkShape, checkShapeAndDataCapacityConsistency, numel.

Analyze Your Own Codebase

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

Try Supermodel Free