Package org.robovm.apple.metalps
Class MPSCNNYOLOLoss
- 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.MPSCNNYOLOLoss
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class MPSCNNYOLOLoss extends MPSCNNKernel
- Since:
- Available in iOS 12.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MPSCNNYOLOLoss.MPSCNNYOLOLossPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.metalps.MPSCNNKernel
MPSCNNKernel.MPSCNNKernelPtr
-
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 MPSCNNYOLOLoss()
MPSCNNYOLOLoss(NSCoder decoder)
MPSCNNYOLOLoss(NSCoder decoder, MTLDevice device)
protected
MPSCNNYOLOLoss(NSObject.Handle h, long handle)
protected
MPSCNNYOLOLoss(NSObject.SkipInit skipInit)
MPSCNNYOLOLoss(MTLDevice device, MPSCNNYOLOLossDescriptor lossDescriptor)
-
Method Summary
-
Methods inherited from class org.robovm.apple.metalps.MPSCNNKernel
appendBatchBarrier, encode, encode, encode, encode, encodeBatch, encodeBatch, encodeBatch, encodeBatch, getClipRect, getDestinationFeatureChannelOffset, getDestinationImageAllocator, getDestinationImageDescriptor, getDilationRateX, getDilationRateY, getEdgeMode, getKernelHeight, getKernelWidth, getOffset, getPadding, getResultState, getResultStateBatch, getSourceFeatureChannelMaxCount, getSourceFeatureChannelOffset, getStrideInPixelsX, getStrideInPixelsY, getTemporaryResult, getTemporaryResultState, init, isBackwards, isResultStateReusedAcrossBatch, isStateModified, setClipRect, setDestinationFeatureChannelOffset, setDestinationImageAllocator, setEdgeMode, setOffset, setPadding, setSourceFeatureChannelMaxCount, setSourceFeatureChannelOffset
-
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
-
MPSCNNYOLOLoss
public MPSCNNYOLOLoss()
-
MPSCNNYOLOLoss
protected MPSCNNYOLOLoss(NSObject.Handle h, long handle)
-
MPSCNNYOLOLoss
protected MPSCNNYOLOLoss(NSObject.SkipInit skipInit)
-
MPSCNNYOLOLoss
public MPSCNNYOLOLoss(MTLDevice device, MPSCNNYOLOLossDescriptor lossDescriptor)
-
MPSCNNYOLOLoss
public MPSCNNYOLOLoss(NSCoder decoder)
-
-
Method Detail
-
getLossXY
public MPSCNNLoss getLossXY()
-
getLossWH
public MPSCNNLoss getLossWH()
-
getLossConfidence
public MPSCNNLoss getLossConfidence()
-
getLossClasses
public MPSCNNLoss getLossClasses()
-
getScaleXY
public float getScaleXY()
-
getScaleWH
public float getScaleWH()
-
getScaleNoObject
public float getScaleNoObject()
-
getScaleObject
public float getScaleObject()
-
getScaleClass
public float getScaleClass()
-
getMinIOUForObjectPresence
public float getMinIOUForObjectPresence()
-
getMaxIOUForObjectAbsence
public float getMaxIOUForObjectAbsence()
-
getReductionType
public MPSCNNReductionType getReductionType()
-
getNumberOfAnchorBoxes
public long getNumberOfAnchorBoxes()
-
getAnchorBoxes
public NSData getAnchorBoxes()
-
init
protected long init(MTLDevice device, MPSCNNYOLOLossDescriptor lossDescriptor)
-
init
protected long init(NSCoder decoder, MTLDevice device)
- Overrides:
init
in classMPSCNNKernel
-
encodeToCommandBuffer
public void encodeToCommandBuffer(MTLCommandBuffer commandBuffer, MPSImage sourceImage, MPSCNNLossLabels labels, MPSImage destinationImage)
-
encodeToCommandBuffer
public MPSImage encodeToCommandBuffer(MTLCommandBuffer commandBuffer, MPSImage sourceImage, MPSCNNLossLabels labels)
-
encodeBatchToCommandBuffer
public void encodeBatchToCommandBuffer(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImage, NSArray<MPSCNNLossLabels> labels, NSArray<MPSImage> destinationImage)
-
encodeBatchToCommandBuffer
public NSArray<MPSImage> encodeBatchToCommandBuffer(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImage, NSArray<MPSCNNLossLabels> labels)
-
-