public UnorderedMapVariableVariable(UnorderedMapVariableVariable other) : this(CNTKLibPINVOKE.new_UnorderedMapVariableVariable__SWIG_1(UnorderedMapVariableVariable.getCPtr(other)), true)
 {
     if (CNTKLibPINVOKE.SWIGPendingException.Pending)
     {
         throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public UnorderedMapVariableVariableEnumerator(UnorderedMapVariableVariable collection)
 {
     collectionRef = collection;
     keyCollection = new global::System.Collections.Generic.List <Variable>(collection.Keys);
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Beispiel #3
0
        public Function ReplacePlaceholders(UnorderedMapVariableVariable placeholderReplacements)
        {
            global::System.IntPtr cPtr = CNTKLibPINVOKE.Function_ReplacePlaceholders(swigCPtr, UnorderedMapVariableVariable.getCPtr(placeholderReplacements));
            Function ret = (cPtr == global::System.IntPtr.Zero) ? null : new Function(cPtr, true);

            if (CNTKLibPINVOKE.SWIGPendingException.Pending)
            {
                throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #4
0
        private Function _Clone(ParameterCloningMethod parameterCloneMethod, UnorderedMapVariableVariable replacements)
        {
            global::System.IntPtr cPtr = CNTKLibPINVOKE.Function__Clone__SWIG_1(swigCPtr, (int)parameterCloneMethod, UnorderedMapVariableVariable.getCPtr(replacements));
            Function ret = (cPtr == global::System.IntPtr.Zero) ? null : new Function(cPtr, true);

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