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)); } }
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)); } }
static public MPSCnnConvolutionTransposeNode Create(MPSNNImageNode sourceNode, MPSCnnConvolutionStateNode convolutionState, IMPSCnnConvolutionDataSource weights) { return(null); }
public MPSCnnConvolutionTransposeNode(MPSNNImageNode sourceNode, MPSCnnConvolutionStateNode convolutionState, IMPSCnnConvolutionDataSource weights) : base(IntPtr.Zero) { throw new NotSupportedException(); }