Package org.robovm.apple.metalps
Class MPSCNNConvolution
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
org.robovm.apple.metalps.MPSCNNConvolution
- All Implemented Interfaces:
NSCoding,NSObjectProtocol,NSSecureCoding,ObjCProtocol
- Direct Known Subclasses:
MPSCNNFullyConnected
public class MPSCNNConvolution extends MPSCNNKernel
- Since:
- Available in iOS 10.0 and later.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMPSCNNConvolution.MPSCNNConvolutionPtrNested classes/interfaces inherited from class org.robovm.apple.metalps.MPSCNNKernel
MPSCNNKernel.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 MPSCNNConvolution()MPSCNNConvolution(NSCoder coder)MPSCNNConvolution(NSCoder decoder, MTLDevice device)protectedMPSCNNConvolution(NSObject.Handle h, long handle)protectedMPSCNNConvolution(NSObject.SkipInit skipInit)MPSCNNConvolution(MTLDevice device, MPSCNNConvolutionDataSource weights)MPSCNNConvolution(MTLDevice device, MPSCNNConvolutionDescriptor convolutionDescriptor, FloatPtr kernelWeights, FloatPtr biasTerms, MPSCNNConvolutionFlags flags)Deprecated.Deprecated in iOS 11.0. -
Method Summary
Methods inherited from class org.robovm.apple.metalps.MPSCNNKernel
appendBatchBarrier, encode, encode, encode, encode, encodeBatch, encodeBatch, encodeBatch0, encodeBatch0, getBatchEncodingStorageSize, getClipRect, getDestinationFeatureChannelOffset, getDestinationImageAllocator, getDestinationImageDescriptor, getDilationRateX, getDilationRateY, getEdgeMode, getEncodingStorageSize, getKernelHeight, getKernelWidth, getOffset, getPadding, getSourceFeatureChannelMaxCount, getSourceFeatureChannelOffset, getStrideInPixelsX, getStrideInPixelsY, getTemporaryResult, init, isBackwards, isResultStateReusedAcrossBatch, isStateModified, setClipRect, setDestinationFeatureChannelOffset, setDestinationImageAllocator, setEdgeMode, setOffset, setPadding, setSourceFeatureChannelMaxCount, setSourceFeatureChannelOffsetMethods 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
-
MPSCNNConvolution
public MPSCNNConvolution() -
MPSCNNConvolution
-
MPSCNNConvolution
-
MPSCNNConvolution
- Since:
- Available in iOS 11.0 and later.
-
MPSCNNConvolution
@Deprecated public MPSCNNConvolution(MTLDevice device, MPSCNNConvolutionDescriptor convolutionDescriptor, FloatPtr kernelWeights, FloatPtr biasTerms, MPSCNNConvolutionFlags flags)Deprecated.Deprecated in iOS 11.0. Use Please use -initWithDevice:convolutionDescriptor:weights: instead.- Since:
- Available in iOS 10.0 and later.
-
MPSCNNConvolution
- Since:
- Available in iOS 11.0 and later.
-
MPSCNNConvolution
-
-
Method Details
-
getInputFeatureChannels
public long getInputFeatureChannels() -
getOutputFeatureChannels
public long getOutputFeatureChannels() -
getGroups
public long getGroups() -
getDataSource
-
getSubPixelScaleFactor
public long getSubPixelScaleFactor() -
getNeuron
Deprecated.Deprecated in iOS 11.0. Use A MPSCNNNeuron is much too heavy for this purpose. Please set fusedNeuronDescriptor property of convolution descriptor instead.- Since:
- Available in iOS 10.0 and later.
-
getNeuronType
Deprecated.Deprecated in iOS 12.0. Use fusedNeuronDesciptor instead.- Since:
- Available in iOS 10.0 and later.
-
getNeuronParameterA
Deprecated.Deprecated in iOS 12.0. Use fusedNeuronDesciptor instead.- Since:
- Available in iOS 10.0 and later.
-
getNeuronParameterB
Deprecated.Deprecated in iOS 12.0. Use fusedNeuronDesciptor instead.- Since:
- Available in iOS 10.0 and later.
-
getNeuronParameterC
Deprecated.Deprecated in iOS 12.0. Use fusedNeuronDesciptor instead.- Since:
- Available in iOS 10.0 and later.
-
getFusedNeuronDescriptor
- Since:
- Available in iOS 12.0 and later.
-
getChannelMultiplier
public long getChannelMultiplier() -
getAccumulatorPrecisionOption
- Since:
- Available in iOS 11.3 and later.
-
setAccumulatorPrecisionOption
- Since:
- Available in iOS 11.3 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding() -
init
- Since:
- Available in iOS 11.0 and later.
-
init
@Deprecated protected long init(MTLDevice device, MPSCNNConvolutionDescriptor convolutionDescriptor, FloatPtr kernelWeights, FloatPtr biasTerms, MPSCNNConvolutionFlags flags)Deprecated.Deprecated in iOS 11.0. Use Please use -initWithDevice:convolutionDescriptor:weights: instead.- Since:
- Available in iOS 10.0 and later.
-
init
- Overrides:
initin classMPSCNNKernel- Since:
- Available in iOS 11.0 and later.
-
getResultState
public MPSCNNConvolutionGradientState getResultState(MPSImage sourceImage, NSArray<MPSState> sourceStates, MPSImage destinationImage)- Overrides:
getResultStatein classMPSCNNKernel- Since:
- Available in iOS 11.3 and later.
-
getResultStateBatch
public NSArray<MPSCNNConvolutionGradientState> getResultStateBatch(NSArray<MPSImage> sourceImage, NSArray<NSArray<? extends MPSState>> sourceStates, NSArray<MPSImage> destinationImage)- Overrides:
getResultStateBatchin classMPSCNNKernel- Since:
- Available in iOS 11.3 and later.
-
getResultState
public MPSCNNConvolutionGradientState getResultState(MTLCommandBuffer commandBuffer, MPSImage sourceImage, NSArray<MPSState> sourceStates, MPSImage destinationImage)- Since:
- Available in iOS 11.3 and later.
-
getTemporaryResultStateBatch
public NSArray<MPSCNNConvolutionGradientState> getTemporaryResultStateBatch(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImage, NSArray<NSArray<? extends MPSState>> sourceStates, NSArray<MPSImage> destinationImage)- Overrides:
getTemporaryResultStateBatchin classMPSCNNKernel- Since:
- Available in iOS 11.3 and later.
-
reloadWeightsAndBiasesFromDataSource
public void reloadWeightsAndBiasesFromDataSource()- Since:
- Available in iOS 12.0 and later.
-
reloadWeightsAndBiases
Deprecated.Deprecated in iOS 12.0. Use Please use -reloadWeightsAndBiasesFromDataSource instead.- Since:
- Available in iOS 11.3 and later.
-
reloadWeightsAndBiases
public void reloadWeightsAndBiases(MTLCommandBuffer commandBuffer, MPSCNNConvolutionWeightsAndBiasesState state)- Since:
- Available in iOS 11.3 and later.
-
exportWeightsAndBiases
public MPSCNNConvolutionWeightsAndBiasesState exportWeightsAndBiases(MTLCommandBuffer commandBuffer, boolean resultStateCanBeTemporary)- Since:
- Available in iOS 11.3 and later.
-