Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mpsimagedescriptor(3) [mojave man page]

MPSImageDescriptor(3)					 MetalPerformanceShaders.framework				     MPSImageDescriptor(3)

NAME
MPSImageDescriptor SYNOPSIS
#import <MPSImage.h> Inherits NSObject. Class Methods (__nonnull instancetype) + imageDescriptorWithChannelFormat:width:height:featureChannels: (__nonnull instancetype) + imageDescriptorWithChannelFormat:width:height:featureChannels:numberOfImages:usage: Properties NSUInteger width NSUInteger height NSUInteger featureChannels NSUInteger numberOfImages MTLPixelFormat pixelFormat MPSImageFeatureChannelFormat channelFormat MTLCPUCacheMode cpuCacheMode MTLStorageMode storageMode MTLTextureUsage usage Detailed Description MPSImage.h MPSCore.framework Copyright: Copyright (c) 2015-2017 Apple Inc. All rights reserved. A MPSImage is a MTLTexture abstraction that allows for more than 4 channels, and for temporary images. This depends on Metal.framework A MPSImageDescriptor object describes a attributes of MPSImage and is used to create one (see MPSImage discussion below) Method Documentation + (__nonnull instancetype) imageDescriptorWithChannelFormat: (MPSImageFeatureChannelFormat) channelFormat(NSUInteger) width(NSUInteger) height(NSUInteger) featureChannels Create a MPSImageDescriptor for a single read/write cnn image. + (__nonnull instancetype) imageDescriptorWithChannelFormat: (MPSImageFeatureChannelFormat) channelFormat(NSUInteger) width(NSUInteger) height(NSUInteger) featureChannels(NSUInteger) numberOfImages(MTLTextureUsage) usage Create a MPSImageDescriptor for a read/write cnn image with option to set usage and batch size (numberOfImages). Property Documentation - channelFormat [read], [write], [nonatomic], [assign] The storage format to use for each channel in the image. - cpuCacheMode [read], [write], [nonatomic], [assign] Options to specify CPU cache mode of texture resource. Default = MTLCPUCacheModeDefaultCache - featureChannels [read], [write], [nonatomic], [assign] The number of feature channels per pixel. Default = 1. - height [read], [write], [nonatomic], [assign] The height of the CNN image. The formal height of the CNN image in pixels. Default = 1. - numberOfImages [read], [write], [nonatomic], [assign] The number of images for batch processing. Default = 1. - pixelFormat [read], [nonatomic], [assign] The MTLPixelFormat expected for the underlying texture. - storageMode [read], [write], [nonatomic], [assign] To specify storage mode of texture resource. Storage mode options: Default = MTLStorageModeShared on iOS MTLStorageModeManaged on Mac OSX MTLStorageModeShared not supported on Mac OSX. See Metal headers for synchronization requirements when using StorageModeManaged - usage [read], [write], [nonatomic], [assign] Description of texture usage. Default = MTLTextureUsageShaderRead/Write - width [read], [write], [nonatomic], [assign] The width of the CNN image. The formal width of the CNN image in pixels. Default = 1. Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSImageDescriptor(3)

Check Out this Related Man Page

MPSCNNLossDataDescriptor(3)				 MetalPerformanceShaders.framework			       MPSCNNLossDataDescriptor(3)

NAME
MPSCNNLossDataDescriptor SYNOPSIS
#import <MPSCNNLoss.h> Inherits NSObject, and <NSCopying>. Instance Methods (nonnull instancetype) - init Class Methods (nullable MPSCNNLossDataDescriptor *) + cnnLossDataDescriptorWithData:layout:size: Properties MPSDataLayout layout MTLSize size NSUInteger bytesPerRow NSUInteger bytesPerImage Detailed Description This depends on Metal.framework. The MPSCNNLossDataDescriptor specifies a loss data descriptor. The same descriptor can be used to initialize both the labels and the optional weights data. Method Documentation + (nullable MPSCNNLossDataDescriptor*) cnnLossDataDescriptorWithData: (NSData *__nonnull) data(MPSDataLayout) layout(MTLSize) size Make a descriptor loss data. The bytesPerRow and bytesPerImage are automatically calculated assuming a dense array. If it is not a dense array, adjust bytesPerRow and bytesPerImage to the right value by changing properties. Parameters: data The per-element loss data. The data must be in floating point format. layout The data layout of loss data. size The size of loss data. Returns: A valid MPSCNNLossDataDescriptor object or nil, if failure. - (nonnull instancetype) init Property Documentation - bytesPerImage [read], [write], [nonatomic], [assign] Slice bytes of loss data. This parameter specifies the slice bytes of loss data. - bytesPerRow [read], [write], [nonatomic], [assign] Row bytes of loss data. This parameter specifies the row bytes of loss data. - layout [read], [nonatomic], [assign] Data layout of loss data. See MPSImage.h for more information. This parameter specifies the layout of loss data. - size [read], [nonatomic], [assign] Size of loss data: (width, height, feature channels}. This parameter specifies the size of loss data. Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSCNNLossDataDescriptor(3)
Man Page