/// <summary> /// Create an input/output variable for a neural network. /// </summary> /// <param name="shape">The shape of the variable.</param> /// <param name="dataType">The data type of the variable.</param> /// <returns>The created neural network variable.</returns> public static CNTK.Variable Var( IEnumerable <int> shape, CNTK.DataType dataType, string name = "", List <CNTK.Axis> dynamicAxes = null) { return(CNTK.Variable.InputVariable( CNTK.NDShape.CreateNDShape(shape), dataType, name: name, dynamicAxes: dynamicAxes)); }
/// <summary> /// Create an input/output variable for a neural network. /// </summary> /// <param name="shape">The shape of the variable.</param> /// <param name="dataType">The data type of the variable.</param> /// <returns>The created neural network variable.</returns> public static CNTK.Variable Var( IEnumerable <int> shape, CNTK.DataType dataType) { return(CNTK.Variable.InputVariable(CNTK.NDShape.CreateNDShape(shape), dataType)); }