Exemplo n.º 1
0
 public MinibatchSourceConfig(DictionaryVector deserializers) : this(CNTKLibPINVOKE.new_MinibatchSourceConfig__SWIG_1(DictionaryVector.getCPtr(deserializers)), true)
 {
     if (CNTKLibPINVOKE.SWIGPendingException.Pending)
     {
         throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
 public void SetRange(int index, DictionaryVector values) {
   CNTKLibPINVOKE.DictionaryVector_SetRange(swigCPtr, index, DictionaryVector.getCPtr(values));
   if (CNTKLibPINVOKE.SWIGPendingException.Pending) throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 3
0
 public static DictionaryVector Repeat(CNTKDictionary value, int count) {
   global::System.IntPtr cPtr = CNTKLibPINVOKE.DictionaryVector_Repeat(CNTKDictionary.getCPtr(value), count);
   DictionaryVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new DictionaryVector(cPtr, true);
   if (CNTKLibPINVOKE.SWIGPendingException.Pending) throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Exemplo n.º 4
0
 public DictionaryVector GetRange(int index, int count) {
   global::System.IntPtr cPtr = CNTKLibPINVOKE.DictionaryVector_GetRange(swigCPtr, index, count);
   DictionaryVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new DictionaryVector(cPtr, true);
   if (CNTKLibPINVOKE.SWIGPendingException.Pending) throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Exemplo n.º 5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DictionaryVector obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Exemplo n.º 6
0
 public DictionaryVector(DictionaryVector other) : this(CNTKLibPINVOKE.new_DictionaryVector__SWIG_1(DictionaryVector.getCPtr(other)), true) {
   if (CNTKLibPINVOKE.SWIGPendingException.Pending) throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 7
0
 public DictionaryVectorEnumerator(DictionaryVector collection) {
   collectionRef = collection;
   currentIndex = -1;
   currentObject = null;
   currentSize = collectionRef.Count;
 }