Package org.robovm.apple.metalps
Class MPSCNNKernel
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.MPSCNNKernel
- All Implemented Interfaces:
NSCoding,NSObjectProtocol,NSSecureCoding,ObjCProtocol
- Direct Known Subclasses:
MPSCNNBatchNormalization,MPSCNNBatchNormalizationStatistics,MPSCNNBinaryConvolution,MPSCNNConvolution,MPSCNNConvolutionTranspose,MPSCNNCrossChannelNormalization,MPSCNNDropout,MPSCNNGroupNormalization,MPSCNNInstanceNormalization,MPSCNNLocalContrastNormalization,MPSCNNLogSoftMax,MPSCNNLoss,MPSCNNNeuron,MPSCNNPooling,MPSCNNSoftMax,MPSCNNSpatialNormalization,MPSCNNUpsampling,MPSCNNYOLOLoss,MPSNNCropAndResizeBilinear,MPSNNForwardLoss,MPSNNGramMatrixCalculation,MPSNNInitialGradient,MPSNNPad,MPSNNReduceUnary,MPSNNReshape,MPSNNResizeBilinear,MPSNNSlice,MPSRNNImageInferenceLayer
public class MPSCNNKernel extends MPSKernel
- Since:
- Available in iOS 10.0 and later.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMPSCNNKernel.MPSCNNKernelPtrNested 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
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
Constructors Modifier Constructor Description MPSCNNKernel()MPSCNNKernel(NSCoder coder)MPSCNNKernel(NSCoder decoder, MTLDevice device)protectedMPSCNNKernel(NSObject.Handle h, long handle)protectedMPSCNNKernel(NSObject.SkipInit skipInit)MPSCNNKernel(MTLDevice device) -
Method Summary
Methods inherited from class org.robovm.apple.metalps.MPSKernel
copy, encode, getDevice, getLabel, getOptions, 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, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandle, setHandle
-
Constructor Details
-
MPSCNNKernel
public MPSCNNKernel() -
MPSCNNKernel
-
MPSCNNKernel
-
MPSCNNKernel
-
MPSCNNKernel
- Since:
- Available in iOS 11.0 and later.
-
MPSCNNKernel
-
-
Method Details
-
getOffset
-
setOffset
-
getClipRect
-
setClipRect
-
getDestinationFeatureChannelOffset
public long getDestinationFeatureChannelOffset() -
setDestinationFeatureChannelOffset
public void setDestinationFeatureChannelOffset(long v) -
getSourceFeatureChannelOffset
public long getSourceFeatureChannelOffset() -
setSourceFeatureChannelOffset
public void setSourceFeatureChannelOffset(long v) -
getSourceFeatureChannelMaxCount
public long getSourceFeatureChannelMaxCount() -
setSourceFeatureChannelMaxCount
public void setSourceFeatureChannelMaxCount(long v) -
getEdgeMode
-
setEdgeMode
-
getKernelWidth
public long getKernelWidth() -
getKernelHeight
public long getKernelHeight() -
getStrideInPixelsX
public long getStrideInPixelsX() -
getStrideInPixelsY
public long getStrideInPixelsY() -
getDilationRateX
public long getDilationRateX() -
getDilationRateY
public long getDilationRateY() -
isBackwards
public boolean isBackwards()- Since:
- Available in iOS 11.0 and later.
-
isStateModified
public boolean isStateModified()- Since:
- Available in iOS 11.3 and later.
-
getPadding
- Since:
- Available in iOS 11.0 and later.
-
setPadding
- Since:
- Available in iOS 11.0 and later.
-
getDestinationImageAllocator
- Since:
- Available in iOS 11.0 and later.
-
setDestinationImageAllocator
- Since:
- Available in iOS 11.0 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding() -
init
-
init
-
encode
public void encode(MTLCommandBuffer commandBuffer, MPSImage sourceImage, MPSImage destinationImage) -
encode
public void encode(MTLCommandBuffer commandBuffer, MPSImage sourceImage, MPSState destinationState, MPSImage destinationImage)- Since:
- Available in iOS 11.3 and later.
-
encodeBatch0
public void encodeBatch0(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImages, NSArray<MPSImage> destinationImages)- Since:
- Available in iOS 11.3 and later.
-
encodeBatch0
public void encodeBatch0(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImages, NSArray<? extends MPSState> destinationStates, NSArray<MPSImage> destinationImages)- Since:
- Available in iOS 11.3 and later.
-
encode
- Since:
- Available in iOS 11.0 and later.
-
encode
public MPSImage encode(MTLCommandBuffer commandBuffer, MPSImage sourceImage, MPSState.MPSStatePtr outState, boolean isTemporary)- Since:
- Available in iOS 11.3 and later.
-
encodeBatch
public NSArray<MPSImage> encodeBatch(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImages)- Since:
- Available in iOS 11.3 and later.
-
encodeBatch
public NSArray<MPSImage> encodeBatch(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImages, NSArray.NSArrayPtr<? extends MPSState> outStates, boolean isTemporary)- Since:
- Available in iOS 11.3 and later.
-
getResultState
public MPSState getResultState(MPSImage sourceImage, NSArray<MPSState> sourceStates, MPSImage destinationImage)- Since:
- Available in iOS 11.3 and later.
-
getResultStateBatch
public NSArray<? extends MPSState> getResultStateBatch(NSArray<MPSImage> sourceImage, NSArray<NSArray<? extends MPSState>> sourceStates, NSArray<MPSImage> destinationImage)- Since:
- Available in iOS 11.3 and later.
-
getTemporaryResult
public MPSState getTemporaryResult(MTLCommandBuffer commandBuffer, MPSImage sourceImage, NSArray<MPSState> sourceStates, MPSImage destinationImage)- Since:
- Available in iOS 11.3 and later.
-
getTemporaryResultStateBatch
public NSArray<? extends MPSState> getTemporaryResultStateBatch(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImage, NSArray<NSArray<? extends MPSState>> sourceStates, NSArray<MPSImage> destinationImage)- Since:
- Available in iOS 11.3 and later.
-
isResultStateReusedAcrossBatch
public boolean isResultStateReusedAcrossBatch()- Since:
- Available in iOS 11.3 and later.
-
appendBatchBarrier
public boolean appendBatchBarrier()- Since:
- Available in iOS 11.3 and later.
-
getDestinationImageDescriptor
public MPSImageDescriptor getDestinationImageDescriptor(NSArray<MPSImage> sourceImages, NSArray<MPSState> sourceStates)- Since:
- Available in iOS 11.0 and later.
-
getEncodingStorageSize
public long getEncodingStorageSize(MPSImage sourceImage, NSArray<MPSState> sourceStates, MPSImage destinationImage)- Since:
- Available in iOS 13.0 and later.
-
getBatchEncodingStorageSize
public long getBatchEncodingStorageSize(NSArray<MPSImage> sourceImage, NSArray<NSArray<? extends MPSState>> sourceStates, NSArray<MPSImage> destinationImage)- Since:
- Available in iOS 13.0 and later.
-