示例#1
0
        public object MarshalNativeToManaged(IntPtr obj)
        {
            NNGpuTestResult testResult = new NNGpuTestResult();

            testResult.expected = Marshal.ReadInt32(obj);
            obj += 4;
            testResult.predicted = Marshal.ReadInt32(obj);

            return(testResult);
        }
示例#2
0
 public static extern bool TestNetworkInteration(IntPtr nn, [Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NNGpuMarshalTestResult))] out NNGpuTestResult result);