Exemplo n.º 1
0
 public VariablePairVector(VariablePairVector other) : this(CNTKLibPINVOKE.new_VariablePairVector__SWIG_1(VariablePairVector.getCPtr(other)), true)
 {
     if (CNTKLibPINVOKE.SWIGPendingException.Pending)
     {
         throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
 public VariablePairVectorEnumerator(VariablePairVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Exemplo n.º 3
0
 public void SetRange(int index, VariablePairVector values)
 {
     CNTKLibPINVOKE.VariablePairVector_SetRange(swigCPtr, index, VariablePairVector.getCPtr(values));
     if (CNTKLibPINVOKE.SWIGPendingException.Pending)
     {
         throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 4
0
        public VariablePairVector BlockArgumentsMapping()
        {
            VariablePairVector ret = new VariablePairVector(CNTKLibPINVOKE.Function_BlockArgumentsMapping(swigCPtr), true);

            if (CNTKLibPINVOKE.SWIGPendingException.Pending)
            {
                throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 5
0
        public static VariablePairVector Repeat(VariablePair value, int count)
        {
            global::System.IntPtr cPtr = CNTKLibPINVOKE.VariablePairVector_Repeat(VariablePair.getCPtr(value), count);
            VariablePairVector    ret  = (cPtr == global::System.IntPtr.Zero) ? null : new VariablePairVector(cPtr, true);

            if (CNTKLibPINVOKE.SWIGPendingException.Pending)
            {
                throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 6
0
        public VariablePairVector GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = CNTKLibPINVOKE.VariablePairVector_GetRange(swigCPtr, index, count);
            VariablePairVector    ret  = (cPtr == global::System.IntPtr.Zero) ? null : new VariablePairVector(cPtr, true);

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