Esempio n. 1
0
 public Value(NDArrayView data, NDMask mask) : this(CNTKLibPINVOKE.new_Value__SWIG_1(NDArrayView.getCPtr(data), NDMask.getCPtr(mask)), true)
 {
     if (CNTKLibPINVOKE.SWIGPendingException.Pending)
     {
         throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 2
0
 public void CopyFrom(NDMask source)
 {
     CNTKLibPINVOKE.NDMask_CopyFrom(swigCPtr, NDMask.getCPtr(source));
     if (CNTKLibPINVOKE.SWIGPendingException.Pending)
     {
         throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 3
0
        private NDMask _Mask()
        {
            global::System.IntPtr cPtr = CNTKLibPINVOKE.Value__Mask(swigCPtr);
            NDMask ret = (cPtr == global::System.IntPtr.Zero) ? null : new NDMask(cPtr, true);

            if (CNTKLibPINVOKE.SWIGPendingException.Pending)
            {
                throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 4
0
        public NDMask DeepClone()
        {
            global::System.IntPtr cPtr = CNTKLibPINVOKE.NDMask_DeepClone__SWIG_1(swigCPtr);
            NDMask ret = (cPtr == global::System.IntPtr.Zero) ? null : new NDMask(cPtr, true);

            if (CNTKLibPINVOKE.SWIGPendingException.Pending)
            {
                throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NDMask obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }