Esempio n. 1
0
        internal static VariableVector AsVariableVector(IList <Variable> input)
        {
            VariableVector inputVector = new VariableVector();

            foreach (var element in input)
            {
                inputVector.Add(element);
            }
            return(inputVector);
        }
Esempio n. 2
0
        /// <summary>
        /// Creates a new Function from specified operands.
        /// </summary>
        /// <param name="operands"></param>
        /// <returns></returns>
        public static Function Combine(System.Collections.Generic.IEnumerable <Variable> operands)
        {
            var varVect = new VariableVector();

            foreach (var v in operands)
            {
                varVect.Add(v);
            }
            return(CNTKLib.Combine(varVect));
        }