internal static DictionaryVector AsDictionaryVector(IList <CNTKDictionary> input) { DictionaryVector inputVector = new DictionaryVector(); foreach (var element in input) { inputVector.Add(element); } return(inputVector); }
/// <summary> /// Create an ImageDeserializer with the specified options /// </summary> /// <param name="fileName">source file</param> /// <param name="labelStreamName">label of the stream</param> /// <param name="numLabels">number of labels</param> /// <param name="imageStreamName">the image stream name</param> /// <param name="deserializers">deserializer configuration</param> /// <returns></returns> public static CNTKDictionary ImageDeserializer(string fileName, string labelStreamName, uint numLabels, string imageStreamName, IList <CNTKDictionary> deserializers) { DictionaryVector deserializersSwig = Helper.AsDictionaryVector(deserializers); return(ImageDeserializer(fileName, labelStreamName, numLabels, imageStreamName, deserializersSwig)); }