C# 클래스 DigitDetection.MnistFullLayerNeuralNetwork

파일 보기 프로젝트 열기: xamarin/monotouch-samples 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
commandQueue IMTLCommandQueue
dstImage MPSImage
softmax MPSCnnSoftMax

공개 메소드들

메소드 설명
Forward ( MPSImage inputImage = null, int imageNum = 9999, int correctLabel = 10 ) : uint

This function encodes all the layers of the network into given commandBuffer, it calls subroutines for each piece of the network Returns: Guess of the network as to what the digit is as UInt

GetLabel ( MPSImage finalLayer ) : uint

This function reads the output probabilities from finalLayer to CPU, sorts them and gets the label with heighest probability

MnistFullLayerNeuralNetwork ( IMTLCommandQueue commandQueueIn ) : System
Planar16FtoPlanarF ( vImageBuffer &src, vImageBuffer &dest, vImageFlags flags ) : vImageError

비공개 메소드들

메소드 설명
vImageConvert_Planar16FtoPlanarF ( vImageBuffer &src, vImageBuffer &dest, vImageFlags flags ) : nint

메소드 상세

Forward() 공개 메소드

This function encodes all the layers of the network into given commandBuffer, it calls subroutines for each piece of the network Returns: Guess of the network as to what the digit is as UInt
public Forward ( MPSImage inputImage = null, int imageNum = 9999, int correctLabel = 10 ) : uint
inputImage MPSImage Image coming in on which the network will run
imageNum int If the test set is being used we will get a value between 0 and 9999 for which of the 10,000 images is being evaluated
correctLabel int The correct label for the inputImage while testing
리턴 uint

GetLabel() 공개 메소드

This function reads the output probabilities from finalLayer to CPU, sorts them and gets the label with heighest probability
public GetLabel ( MPSImage finalLayer ) : uint
finalLayer MPSImage output image of the network this has probabilities of each digit
리턴 uint

MnistFullLayerNeuralNetwork() 공개 메소드

public MnistFullLayerNeuralNetwork ( IMTLCommandQueue commandQueueIn ) : System
commandQueueIn IMTLCommandQueue
리턴 System

Planar16FtoPlanarF() 공개 정적인 메소드

public static Planar16FtoPlanarF ( vImageBuffer &src, vImageBuffer &dest, vImageFlags flags ) : vImageError
src vImageBuffer
dest vImageBuffer
flags vImageFlags
리턴 vImageError

프로퍼티 상세

commandQueue 보호되어 있는 프로퍼티

protected IMTLCommandQueue commandQueue
리턴 IMTLCommandQueue

dstImage 보호되어 있는 프로퍼티

protected MPSImage dstImage
리턴 MPSImage

softmax 보호되어 있는 프로퍼티

protected MPSCnnSoftMax softmax
리턴 MPSCnnSoftMax