Package org.robovm.apple.metalps
Class MPSNNGraph
- 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.MPSNNGraph
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class MPSNNGraph extends MPSKernel implements NSSecureCoding
- Since:
- Available in iOS 11.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MPSNNGraph.MPSNNGraphPtr
-
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 MPSNNGraph()
MPSNNGraph(NSCoder decoder)
MPSNNGraph(NSCoder aDecoder, MTLDevice device)
protected
MPSNNGraph(NSObject.Handle h, long handle)
protected
MPSNNGraph(NSObject.SkipInit skipInit)
MPSNNGraph(MTLDevice device, MPSNNImageNode resultImage)
Deprecated.Deprecated in iOS 11.3.MPSNNGraph(MTLDevice device, MPSNNImageNode resultImage, boolean resultIsNeeded)
-
Method Summary
-
Methods inherited from class org.robovm.apple.metalps.MPSKernel
copy, encode, getDevice, getLabel, getOptions, init, 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
-
MPSNNGraph
public MPSNNGraph()
-
MPSNNGraph
protected MPSNNGraph(NSObject.Handle h, long handle)
-
MPSNNGraph
protected MPSNNGraph(NSObject.SkipInit skipInit)
-
MPSNNGraph
public MPSNNGraph(MTLDevice device, MPSNNImageNode resultImage, boolean resultIsNeeded)
-
MPSNNGraph
@Deprecated public MPSNNGraph(MTLDevice device, MPSNNImageNode resultImage)
Deprecated.Deprecated in iOS 11.3.- Since:
- Available in iOS 11.0 and later.
-
MPSNNGraph
public MPSNNGraph(NSCoder decoder)
-
-
Method Detail
-
getSourceImageHandles
public NSArray<?> getSourceImageHandles()
-
getSourceStateHandles
public NSArray<?> getSourceStateHandles()
-
getIntermediateImageHandles
public NSArray<?> getIntermediateImageHandles()
-
getResultStateHandles
public NSArray<?> getResultStateHandles()
-
getResultHandle
public MPSHandle getResultHandle()
-
isOutputStateIsTemporary
public boolean isOutputStateIsTemporary()
-
setOutputStateIsTemporary
public void setOutputStateIsTemporary(boolean v)
-
getDestinationImageAllocator
public MPSImageAllocator getDestinationImageAllocator()
-
setDestinationImageAllocator
public void setDestinationImageAllocator(MPSImageAllocator v)
-
getFormat
public MPSImageFeatureChannelFormat getFormat()
-
setFormat
public void setFormat(MPSImageFeatureChannelFormat v)
-
isResultImageIsNeeded
public boolean isResultImageIsNeeded()
-
init
protected long init(MTLDevice device, MPSNNImageNode resultImage, boolean resultIsNeeded)
-
init
@Deprecated protected long init(MTLDevice device, MPSNNImageNode resultImage)
Deprecated.Deprecated in iOS 11.3.- Since:
- Available in iOS 11.0 and later.
-
reloadFromDataSources
public void reloadFromDataSources()
-
encode
public MPSImage encode(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImages, NSArray<MPSState> sourceStates, NSMutableArray<MPSImage> intermediateImages, NSMutableArray<MPSState> destinationStates)
-
encodeBatch
public NSArray<MPSImage> encodeBatch(MTLCommandBuffer commandBuffer, NSArray<NSArray<MPSImage>> sourceImages, NSArray<NSArray<? extends MPSState>> sourceStates, NSMutableArray<NSArray<MPSImage>> intermediateImages, NSMutableArray<NSArray<? extends MPSState>> destinationStates)
- Since:
- Available in iOS 11.3 and later.
-
encode
public MPSImage encode(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImages)
-
encodeBatch
public NSArray<MPSImage> encodeBatch(MTLCommandBuffer commandBuffer, NSArray<NSArray<MPSImage>> sourceImages, NSArray<NSArray<? extends MPSState>> sourceStates)
-
executeAsync
public MPSImage executeAsync(NSArray<MPSImage> sourceImages, org.robovm.objc.block.VoidBlock2<MPSImage,NSError> handler)
-
readCountForSourceImageAtIndex
public long readCountForSourceImageAtIndex(long index)
- Since:
- Available in iOS 12.1 and later.
-
readCountForSourceStateAtIndex
public long readCountForSourceStateAtIndex(long index)
- Since:
- Available in iOS 12.1 and later.
-
-