fromBlobUnsigned() — pytorch Function Reference
Architecture documentation for the fromBlobUnsigned() function in Tensor.java from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD a3810b96_9142_0fab_7722_abfe805aec76["fromBlobUnsigned()"] a8703cc9_ca82_8058_0c67_94bdd5d5f63f["checkArgument()"] a3810b96_9142_0fab_7722_abfe805aec76 -->|calls| a8703cc9_ca82_8058_0c67_94bdd5d5f63f 384ee7bc_0c17_aa62_2773_4d58b6ffdfc5["checkShape()"] a3810b96_9142_0fab_7722_abfe805aec76 -->|calls| 384ee7bc_0c17_aa62_2773_4d58b6ffdfc5 bb0b08c6_0ed9_5ba4_4285_d5f7aee8456e["checkShapeAndDataCapacityConsistency()"] a3810b96_9142_0fab_7722_abfe805aec76 -->|calls| bb0b08c6_0ed9_5ba4_4285_d5f7aee8456e 33409211_36c4_6459_52d7_f06e1d5d7aaa["allocateByteBuffer()"] a3810b96_9142_0fab_7722_abfe805aec76 -->|calls| 33409211_36c4_6459_52d7_f06e1d5d7aaa 0904339d_a9fa_c19b_1171_129c4c841cd6["numel()"] a3810b96_9142_0fab_7722_abfe805aec76 -->|calls| 0904339d_a9fa_c19b_1171_129c4c841cd6 ec976618_9c94_29c2_594c_2f6c3bfc32a4["Tensor_uint8()"] a3810b96_9142_0fab_7722_abfe805aec76 -->|calls| ec976618_9c94_29c2_594c_2f6c3bfc32a4 style a3810b96_9142_0fab_7722_abfe805aec76 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);
}
Domain
Subdomains
Calls
Source
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