Android SDK Version


public final class MTensor
Nested Class Summary
Modifier and TypeClassDescription
public classMTensor.Companion
Field Summary
Modifier and TypeFieldDescription
private FloatArraydata
private final IntegershapeSize
Constructor Summary
ConstructorDescription
MTensor(IntArray shape)
Method Summary
Modifier and TypeMethodDescription
final FloatArraygetData()
final UnitsetData(FloatArray data)
final IntegergetShapeSize()
final IntegergetShape(Integer i)
final Unitreshape(IntArray shape) Reshape the shape
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

MTensor

MTensor(IntArray shape)
Method Detail

getData

 final FloatArraygetData()

setData

 final UnitsetData(FloatArray data)

getShapeSize

 final IntegergetShapeSize()

getShape

 final IntegergetShape(Integer i)

reshape

 final Unitreshape(IntArray shape)
Reshape the shape
Parameters:
shape - to reshape