-
public class Tensor.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Tensor.CompanionINSTANCE
-
Method Summary
-
-
Method Detail
-
allocateByteBuffer
final ByteBuffer allocateByteBuffer(Integer numElements)
-
allocateIntBuffer
final IntBuffer allocateIntBuffer(Integer numElements)
-
allocateFloatBuffer
final FloatBuffer allocateFloatBuffer(Integer numElements)
-
allocateLongBuffer
final LongBuffer allocateLongBuffer(Integer numElements)
-
allocateHalfBuffer
final ShortBuffer allocateHalfBuffer(Integer numElements)
-
allocateDoubleBuffer
final DoubleBuffer allocateDoubleBuffer(Integer numElements)
-
fromBlobUnsigned
final Tensor fromBlobUnsigned(ByteArray data, LongArray shape)
-
fromBlobUnsigned
final Tensor fromBlobUnsigned(ByteBuffer data, LongArray shape)
-
fromBlob
final Tensor fromBlob(FloatArray data, LongArray shape)
-
fromBlob
final Tensor fromBlob(ShortArray data, LongArray shape)
-
fromBlob
final Tensor fromBlob(DoubleArray data, LongArray shape)
-
fromBlob
final Tensor fromBlob(ByteBuffer data, LongArray shape)
-
fromBlob
final Tensor fromBlob(FloatBuffer data, LongArray shape)
-
fromBlob
final Tensor fromBlob(ShortBuffer data, LongArray shape)
-
fromBlob
final Tensor fromBlob(LongBuffer data, LongArray shape)
-
fromBlob
final Tensor fromBlob(DoubleBuffer data, LongArray shape)
-
numel
final Long numel(LongArray shape)
Calculates the number of elements in a tensor with the specified shape.
-
fromByteArray
final Tensor fromByteArray(ByteArray bytes)
Deserializes a
Tensorfrom a byte array. Note: This method is experimental and subject to change without notice. This does NOT support list type.
-
-
-
-