Package org.robovm.apple.metalps
Class MPSRNNMatrixTrainingLayer
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.metalps.MPSKernel
org.robovm.apple.metalps.MPSRNNMatrixTrainingLayer
- All Implemented Interfaces:
NSCoding,NSObjectProtocol,NSSecureCoding,ObjCProtocol
public class MPSRNNMatrixTrainingLayer extends MPSKernel
- Since:
- Available in iOS 12.0 and later.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMPSRNNMatrixTrainingLayer.MPSRNNMatrixTrainingLayerPtrNested classes/interfaces inherited from class org.robovm.apple.metalps.MPSKernel
MPSKernel.MPSKernelPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description MPSRNNMatrixTrainingLayer()MPSRNNMatrixTrainingLayer(NSCoder coder)MPSRNNMatrixTrainingLayer(NSCoder decoder, MTLDevice device)protectedMPSRNNMatrixTrainingLayer(NSObject.Handle h, long handle)protectedMPSRNNMatrixTrainingLayer(NSObject.SkipInit skipInit)MPSRNNMatrixTrainingLayer(MTLDevice device, MPSRNNDescriptor rnnDescriptor, NSMutableArray<MPSMatrix> trainableWeights) -
Method Summary
Methods inherited from class org.robovm.apple.metalps.MPSKernel
encode, getDevice, getLabel, getOptions, init, init, setLabel, setOptionsMethods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
MPSRNNMatrixTrainingLayer
public MPSRNNMatrixTrainingLayer() -
MPSRNNMatrixTrainingLayer
-
MPSRNNMatrixTrainingLayer
-
MPSRNNMatrixTrainingLayer
public MPSRNNMatrixTrainingLayer(MTLDevice device, MPSRNNDescriptor rnnDescriptor, NSMutableArray<MPSMatrix> trainableWeights)- Since:
- Available in iOS 12.0 and later.
-
MPSRNNMatrixTrainingLayer
- Since:
- Available in iOS 11.0 and later.
-
MPSRNNMatrixTrainingLayer
-
-
Method Details
-
getInputFeatureChannels
public long getInputFeatureChannels() -
getOutputFeatureChannels
public long getOutputFeatureChannels() -
isStoreAllIntermediateStates
public boolean isStoreAllIntermediateStates() -
setStoreAllIntermediateStates
public void setStoreAllIntermediateStates(boolean v) -
isRecurrentOutputIsTemporary
public boolean isRecurrentOutputIsTemporary() -
setRecurrentOutputIsTemporary
public void setRecurrentOutputIsTemporary(boolean v) -
isTrainingStateIsTemporary
public boolean isTrainingStateIsTemporary() -
setTrainingStateIsTemporary
public void setTrainingStateIsTemporary(boolean v) -
isAccumulateWeightGradients
public boolean isAccumulateWeightGradients() -
setAccumulateWeightGradients
public void setAccumulateWeightGradients(boolean v) -
supportsSecureCoding
public static boolean supportsSecureCoding() -
init
protected long init(MTLDevice device, MPSRNNDescriptor rnnDescriptor, NSMutableArray<MPSMatrix> trainableWeights)- Since:
- Available in iOS 12.0 and later.
-
createWeightGradientMatrices
public void createWeightGradientMatrices(NSMutableArray<MPSMatrix> matricesOut, MPSDataType dataType)- Since:
- Available in iOS 12.0 and later.
-
createTemporaryWeightGradientMatrices
public void createTemporaryWeightGradientMatrices(NSMutableArray<MPSMatrix> matricesOut, MPSDataType dataType, MTLCommandBuffer commandBuffer)- Since:
- Available in iOS 12.0 and later.
-
createWeightMatrices
- Since:
- Available in iOS 12.0 and later.
-
encodeCopyWeights
public void encodeCopyWeights(MTLCommandBuffer commandBuffer, NSArray<MPSMatrix> weights, MPSRNNMatrixId matrixId, MPSMatrix matrix, boolean copyFromWeightsToMatrix, MTLOrigin matrixOffset) -
encodeForwardSequence
public void encodeForwardSequence(MTLCommandBuffer commandBuffer, NSArray<MPSMatrix> sourceMatrices, MachineSizedUIntPtr sourceOffsets, NSArray<MPSMatrix> destinationMatrices, MachineSizedUIntPtr destinationOffsets, NSMutableArray<MPSRNNMatrixTrainingState> trainingStates, MPSRNNRecurrentMatrixState recurrentInputState, NSMutableArray<MPSRNNRecurrentMatrixState> recurrentOutputStates, NSArray<MPSMatrix> weights) -
encodeForwardSequence
public void encodeForwardSequence(MTLCommandBuffer commandBuffer, NSArray<MPSMatrix> sourceMatrices, NSArray<MPSMatrix> destinationMatrices, NSMutableArray<MPSRNNMatrixTrainingState> trainingStates, NSArray<MPSMatrix> weights) -
encodeGradientSequence
public void encodeGradientSequence(MTLCommandBuffer commandBuffer, NSArray<MPSMatrix> forwardSources, MachineSizedUIntPtr forwardSourceOffsets, NSArray<MPSMatrix> sourceGradients, MachineSizedUIntPtr sourceGradientOffsets, NSArray<MPSMatrix> destinationGradients, MachineSizedUIntPtr destinationOffsets, NSArray<MPSMatrix> weightGradients, NSArray<MPSRNNMatrixTrainingState> trainingStates, MPSRNNRecurrentMatrixState recurrentInputState, NSMutableArray<MPSRNNRecurrentMatrixState> recurrentOutputStates, NSArray<MPSMatrix> weights) -
encodeGradientSequence
-
init
-
copy
-