Package org.robovm.apple.metalps
Class MPSCNNGradientKernel
- 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.MPSCNNBinaryKernel
-
- org.robovm.apple.metalps.MPSCNNGradientKernel
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
MPSCNNArithmeticGradient
,MPSCNNBatchNormalizationGradient
,MPSCNNBatchNormalizationStatisticsGradient
,MPSCNNConvolutionGradient
,MPSCNNCrossChannelNormalizationGradient
,MPSCNNDropoutGradient
,MPSCNNInstanceNormalizationGradient
,MPSCNNLocalContrastNormalizationGradient
,MPSCNNLogSoftMaxGradient
,MPSCNNNeuronGradient
,MPSCNNPoolingGradient
,MPSCNNSoftMaxGradient
,MPSCNNSpatialNormalizationGradient
,MPSCNNUpsamplingGradient
,MPSNNPadGradient
,MPSNNReshapeGradient
public class MPSCNNGradientKernel extends MPSCNNBinaryKernel
- Since:
- Available in iOS 11.3 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MPSCNNGradientKernel.MPSCNNGradientKernelPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.metalps.MPSCNNBinaryKernel
MPSCNNBinaryKernel.MPSCNNBinaryKernelPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.metalps.MPSKernel
MPSKernel.MPSKernelPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description MPSCNNGradientKernel()
MPSCNNGradientKernel(NSCoder decoder)
MPSCNNGradientKernel(NSCoder decoder, MTLDevice device)
protected
MPSCNNGradientKernel(NSObject.Handle h, long handle)
protected
MPSCNNGradientKernel(NSObject.SkipInit skipInit)
MPSCNNGradientKernel(MTLDevice device)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MPSImage
encode(MTLCommandBuffer commandBuffer, MPSImage sourceGradient, MPSImage sourceImage, MPSState gradientState)
void
encode(MTLCommandBuffer commandBuffer, MPSImage sourceGradient, MPSImage sourceImage, MPSState gradientState, MPSImage destinationGradient)
NSArray<MPSImage>
encodeBatchGradients(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceGradients, NSArray<MPSImage> sourceImages, NSArray<? extends MPSState> gradientStates)
void
encodeBatchGradients(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceGradients, NSArray<MPSImage> sourceImages, NSArray<? extends MPSState> gradientStates, NSArray<MPSImage> destinationGradients)
long
getKernelOffsetX()
long
getKernelOffsetY()
protected long
init(NSCoder decoder, MTLDevice device)
protected long
init(MTLDevice device)
void
setKernelOffsetX(long v)
void
setKernelOffsetY(long v)
-
Methods inherited from class org.robovm.apple.metalps.MPSCNNBinaryKernel
appendBatchBarrier, encode, encode, encode, encodeBatch, encodeBatch, encodeBatch, getClipRect, getDestinationFeatureChannelOffset, getDestinationImageAllocator, getDestinationImageDescriptor, getPadding, getPrimaryDilationRateX, getPrimaryDilationRateY, getPrimaryEdgeMode, getPrimaryKernelHeight, getPrimaryKernelWidth, getPrimaryOffset, getPrimarySourceFeatureChannelMaxCount, getPrimarySourceFeatureChannelOffset, getPrimaryStrideInPixelsX, getPrimaryStrideInPixelsY, getResultState, getResultStateBatch, getSecondaryDilationRateX, getSecondaryDilationRateY, getSecondaryEdgeMode, getSecondaryKernelHeight, getSecondaryKernelWidth, getSecondaryOffset, getSecondarySourceFeatureChannelMaxCount, getSecondarySourceFeatureChannelOffset, getSecondaryStrideInPixelsX, getSecondaryStrideInPixelsY, getTemporaryResultState, getTemporaryResultStateBatch, isBackwards, isResultStateReusedAcrossBatch, isStateModified, setClipRect, setDestinationFeatureChannelOffset, setDestinationImageAllocator, setPadding, setPrimaryEdgeMode, setPrimaryOffset, setPrimarySourceFeatureChannelMaxCount, setPrimarySourceFeatureChannelOffset, setPrimaryStrideInPixelsX, setPrimaryStrideInPixelsY, setSecondaryEdgeMode, setSecondaryOffset, setSecondarySourceFeatureChannelMaxCount, setSecondarySourceFeatureChannelOffset, setSecondaryStrideInPixelsX, setSecondaryStrideInPixelsY
-
Methods inherited from class org.robovm.apple.metalps.MPSKernel
copy, encode, getDevice, getLabel, getOptions, init, setLabel, setOptions, supportsSecureCoding
-
Methods 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, willChangeValues
-
-
-
-
Constructor Detail
-
MPSCNNGradientKernel
public MPSCNNGradientKernel()
-
MPSCNNGradientKernel
protected MPSCNNGradientKernel(NSObject.Handle h, long handle)
-
MPSCNNGradientKernel
protected MPSCNNGradientKernel(NSObject.SkipInit skipInit)
-
MPSCNNGradientKernel
public MPSCNNGradientKernel(MTLDevice device)
-
MPSCNNGradientKernel
public MPSCNNGradientKernel(NSCoder decoder)
-
-
Method Detail
-
getKernelOffsetX
public long getKernelOffsetX()
-
setKernelOffsetX
public void setKernelOffsetX(long v)
-
getKernelOffsetY
public long getKernelOffsetY()
-
setKernelOffsetY
public void setKernelOffsetY(long v)
-
init
protected long init(MTLDevice device)
- Overrides:
init
in classMPSCNNBinaryKernel
-
init
protected long init(NSCoder decoder, MTLDevice device)
- Overrides:
init
in classMPSCNNBinaryKernel
-
encode
public MPSImage encode(MTLCommandBuffer commandBuffer, MPSImage sourceGradient, MPSImage sourceImage, MPSState gradientState)
-
encode
public void encode(MTLCommandBuffer commandBuffer, MPSImage sourceGradient, MPSImage sourceImage, MPSState gradientState, MPSImage destinationGradient)
-
encodeBatchGradients
public NSArray<MPSImage> encodeBatchGradients(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceGradients, NSArray<MPSImage> sourceImages, NSArray<? extends MPSState> gradientStates)
-
-