Constructor

new(context:Context, dtype:DType, shape:Array<Int>, ?existingHandle:QNdarray)

Variables

@:value(null)dualTensor:TensorHandle = null

@:value(null)gradTensor:TensorHandle = null

@:value(false)read onlyneedsGrad:Bool = false

finalshape:Array<Int>

Methods

close():Void

@:value({ inputByteOffset : 0, count : -1, flatStart : 0 })copyFromBytes(input:Bytes, flatStart:Int = 0, count:Int = -1, inputByteOffset:Int = 0):Void

@:value({ outByteOffset : 0, count : -1, flatStart : 0 })copyToBytes(out:Bytes, flatStart:Int = 0, count:Int = -1, outByteOffset:Int = 0):Void

inlinedevicePointer():Int64

enableGradFlag(enabled:Bool):Void

flatIndex(indices:Array<Int>):Int

numel():Int

rank():Int

@:value({ count : -1, flatStart : 0 })readBytes(flatStart:Int = 0, count:Int = -1):Bytes

@:value({ outByteOffset : 0 })readBytesInto(out:Bytes, flatStart:Int, count:Int, outByteOffset:Int = 0):Void

requireAutodiffDType(peerName:String):Void

saveNpy(path:String):Void

shapeCopy():Array<Int>

@:value({ byteOffset : 0, count : -1, flatStart : 0 })writeBytes(bytes:Bytes, flatStart:Int = 0, count:Int = -1, byteOffset:Int = 0):Void

@:value({ inputByteOffset : 0 })writeBytesFrom(input:Bytes, flatStart:Int, count:Int, inputByteOffset:Int = 0):Void