Ejemplo n.º 1
0
 public MPSCnnBinaryFullyConnectedNode(MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, float [] outputBiasTerms, float [] outputScaleTerms, float [] inputBiasTerms, float [] inputScaleTerms, MPSCnnBinaryConvolutionType type, MPSCnnBinaryConvolutionFlags flags) : base(NSObjectFlag.Empty)
 {
     unsafe {
         fixed(void *outputBiasTermsHandle = outputBiasTerms)
         fixed(void *outputScaleTermsHandle = outputScaleTerms)
         fixed(void *inputBiasTermsHandle   = inputBiasTerms)
         fixed(void *inputScaleTermsHandle  = inputScaleTerms)
         InitializeHandle(InitWithSource(sourceNode, weights, (IntPtr)outputBiasTermsHandle, (IntPtr)outputScaleTermsHandle, (IntPtr)inputBiasTermsHandle, (IntPtr)inputScaleTermsHandle, type, flags));
     }
 }
Ejemplo n.º 2
0
 public static MPSCnnBinaryFullyConnectedNode Create(MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, float [] outputBiasTerms, float [] outputScaleTerms, float [] inputBiasTerms, float [] inputScaleTerms, MPSCnnBinaryConvolutionType type, MPSCnnBinaryConvolutionFlags flags)
 {
     unsafe {
         fixed(void *outputBiasTermsHandle = outputBiasTerms)
         fixed(void *outputScaleTermsHandle = outputScaleTerms)
         fixed(void *inputBiasTermsHandle   = inputBiasTerms)
         fixed(void *inputScaleTermsHandle  = inputScaleTerms)
         return(Create(sourceNode, weights, (IntPtr)outputBiasTermsHandle, (IntPtr)outputScaleTermsHandle, (IntPtr)inputBiasTermsHandle, (IntPtr)inputScaleTermsHandle, type, flags));
     }
 }
Ejemplo n.º 3
0
 static public MPSCnnConvolutionTransposeNode Create(MPSNNImageNode sourceNode, MPSCnnConvolutionStateNode convolutionState, IMPSCnnConvolutionDataSource weights)
 {
     return(null);
 }
Ejemplo n.º 4
0
 public MPSCnnConvolutionTransposeNode(MPSNNImageNode sourceNode, MPSCnnConvolutionStateNode convolutionState, IMPSCnnConvolutionDataSource weights) : base(IntPtr.Zero)
 {
     throw new NotSupportedException();
 }