public NDMask(NDShape shape) : this(CNTKLibPINVOKE.new_NDMask__SWIG_1(NDShape.getCPtr(shape)), true) { if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
public NDShape AppendShape(NDShape shape) { NDShape ret = new NDShape(CNTKLibPINVOKE.NDShape_AppendShape(swigCPtr, NDShape.getCPtr(shape)), true); if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private static Value _Create(NDShape sampleShape, NDArrayViewPtrVector sequences, BoolVector sequenceStartFlags, DeviceDescriptor device) { global::System.IntPtr cPtr = CNTKLibPINVOKE.Value__Create__SWIG_6(NDShape.getCPtr(sampleShape), NDArrayViewPtrVector.getCPtr(sequences), BoolVector.getCPtr(sequenceStartFlags), DeviceDescriptor.getCPtr(device)); Value ret = (cPtr == global::System.IntPtr.Zero) ? null : new Value(cPtr, true); if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public NDArrayView(DataType dataType, NDShape viewShape, int[] colStarts, int[] rowIndices, SWIGTYPE_p_void nonZeroValues, uint numNonZeroValues, DeviceDescriptor device) : this(CNTKLibPINVOKE.new_NDArrayView__SWIG_1((int)dataType, NDShape.getCPtr(viewShape), colStarts, rowIndices, SWIGTYPE_p_void.getCPtr(nonZeroValues), numNonZeroValues, DeviceDescriptor.getCPtr(device)), true) { if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
private static NDArrayView _RandomNormalFloat(NDShape shape, double mean, double stdDev, uint seed, DeviceDescriptor device) { global::System.IntPtr cPtr = CNTKLibPINVOKE.NDArrayView__RandomNormalFloat(NDShape.getCPtr(shape), mean, stdDev, seed, DeviceDescriptor.getCPtr(device)); NDArrayView ret = (cPtr == global::System.IntPtr.Zero) ? null : new NDArrayView(cPtr, true); if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private static NDArrayView _RandomUniformDouble(NDShape shape, double rangeStart, double rangeEnd, uint seed, DeviceDescriptor device) { global::System.IntPtr cPtr = CNTKLibPINVOKE.NDArrayView__RandomUniformDouble(NDShape.getCPtr(shape), rangeStart, rangeEnd, seed, DeviceDescriptor.getCPtr(device)); NDArrayView ret = (cPtr == global::System.IntPtr.Zero) ? null : new NDArrayView(cPtr, true); if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public NDArrayView(NDShape viewShape, int[] colStarts, int[] rowIndices, double[] nonZeroValues, uint numNonZeroValues, DeviceDescriptor device) : this(CNTKLibPINVOKE.new_NDArrayView__SWIG_21(NDShape.getCPtr(viewShape), colStarts, rowIndices, nonZeroValues, numNonZeroValues, DeviceDescriptor.getCPtr(device)), true) { if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
public NDArrayView(NDShape viewShape, int[] colStarts, int[] rowIndices, SWIGTYPE_p_int16_t nonZeroValues, uint numNonZeroValues, DeviceDescriptor device, bool readOnly) : this(CNTKLibPINVOKE.new_NDArrayView__SWIG_24(NDShape.getCPtr(viewShape), colStarts, rowIndices, SWIGTYPE_p_int16_t.getCPtr(nonZeroValues), numNonZeroValues, DeviceDescriptor.getCPtr(device), readOnly), true) { if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
private static Value _CreateDenseFloat(NDShape sampleShape, FloatVectorVector sequences, DeviceDescriptor device, bool readOnly) { global::System.IntPtr cPtr = CNTKLibPINVOKE.Value__CreateDenseFloat__SWIG_0(NDShape.getCPtr(sampleShape), FloatVectorVector.getCPtr(sequences), DeviceDescriptor.getCPtr(device), readOnly); Value ret = (cPtr == global::System.IntPtr.Zero) ? null : new Value(cPtr, true); if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public NDArrayView(NDShape viewShape, double[] dataBuffer, uint numBufferElements, DeviceDescriptor device) : this(CNTKLibPINVOKE.new_NDArrayView__SWIG_17(NDShape.getCPtr(viewShape), dataBuffer, numBufferElements, DeviceDescriptor.getCPtr(device)), true) { if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
public Parameter(NDShape shape, DataType dataType, CNTKDictionary initializer, DeviceDescriptor device) : this(CNTKLibPINVOKE.new_Parameter__SWIG_9(NDShape.getCPtr(shape), (int)dataType, CNTKDictionary.getCPtr(initializer), DeviceDescriptor.getCPtr(device)), true) { if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
public Constant(NDShape shape, DataType dataType, double initValue) : this(CNTKLibPINVOKE.new_Constant__SWIG_7(NDShape.getCPtr(shape), (int)dataType, initValue), true) { if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
private static Value _CreateOneHotDouble(NDShape sampleShape, SizeTVectorVector oneHotSequences, BoolVector sequenceStartFlags, DeviceDescriptor device, bool readOnly) { global::System.IntPtr cPtr = CNTKLibPINVOKE.Value__CreateOneHotDouble__SWIG_2(NDShape.getCPtr(sampleShape), SizeTVectorVector.getCPtr(oneHotSequences), BoolVector.getCPtr(sequenceStartFlags), DeviceDescriptor.getCPtr(device), readOnly); Value ret = (cPtr == global::System.IntPtr.Zero) ? null : new Value(cPtr, true); if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private static Value _CreateSequenceDouble(NDShape sampleShape, uint sequenceLength, int[] colStarts, int[] rowIndices, double[] nonZeroValues, uint numNonZeroValues, bool sequenceStartFlag, DeviceDescriptor device) { global::System.IntPtr cPtr = CNTKLibPINVOKE.Value__CreateSequenceDouble__SWIG_5(NDShape.getCPtr(sampleShape), sequenceLength, colStarts, rowIndices, nonZeroValues, numNonZeroValues, sequenceStartFlag, DeviceDescriptor.getCPtr(device)); Value ret = (cPtr == global::System.IntPtr.Zero) ? null : new Value(cPtr, true); if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private static Value _CreateOneHotFloat(NDShape sampleShape, SizeTVectorVector oneHotSequences, DeviceDescriptor device) { global::System.IntPtr cPtr = CNTKLibPINVOKE.Value__CreateOneHotFloat__SWIG_1(NDShape.getCPtr(sampleShape), SizeTVectorVector.getCPtr(oneHotSequences), DeviceDescriptor.getCPtr(device)); Value ret = (cPtr == global::System.IntPtr.Zero) ? null : new Value(cPtr, true); if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private static Value _CreateSequenceDouble(NDShape sampleShape, double[] dataBuffer, int dataSize, bool sequenceStartFlag, DeviceDescriptor device) { global::System.IntPtr cPtr = CNTKLibPINVOKE.Value__CreateSequenceDouble__SWIG_1(NDShape.getCPtr(sampleShape), dataBuffer, dataSize, sequenceStartFlag, DeviceDescriptor.getCPtr(device)); Value ret = (cPtr == global::System.IntPtr.Zero) ? null : new Value(cPtr, true); if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private static Value _CreateBatchFloat(NDShape sampleShape, float[] dataBuffer, int dataStart, int dataSize, DeviceDescriptor device, bool readOnly) { global::System.IntPtr cPtr = CNTKLibPINVOKE.Value__CreateBatchFloat__SWIG_0(NDShape.getCPtr(sampleShape), dataBuffer, dataStart, dataSize, DeviceDescriptor.getCPtr(device), readOnly); Value ret = (cPtr == global::System.IntPtr.Zero) ? null : new Value(cPtr, true); if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public NDArrayView(DataType dataType, NDShape viewShape, DeviceDescriptor device) : this(CNTKLibPINVOKE.new_NDArrayView__SWIG_3((int)dataType, NDShape.getCPtr(viewShape), DeviceDescriptor.getCPtr(device)), true) { if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
private void _InvalidateSection(SizeTVector sectionOffset, NDShape sectionShape) { CNTKLibPINVOKE.NDMask__InvalidateSection(swigCPtr, SizeTVector.getCPtr(sectionOffset), NDShape.getCPtr(sectionShape)); if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
public Parameter(NDShape shape, DataType dataType, double initValue, DeviceDescriptor device) : this(CNTKLibPINVOKE.new_Parameter__SWIG_6(NDShape.getCPtr(shape), (int)dataType, initValue, DeviceDescriptor.getCPtr(device)), true) { if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
private void _MarkSequenceBegin(SizeTVector offset, NDShape sectionShape) { CNTKLibPINVOKE.NDMask__MarkSequenceBegin__SWIG_1(swigCPtr, SizeTVector.getCPtr(offset), NDShape.getCPtr(sectionShape)); if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
public Constant(NDShape shape, DataType dataType, double initValue, DeviceDescriptor device, string name) : this(CNTKLibPINVOKE.new_Constant__SWIG_5(NDShape.getCPtr(shape), (int)dataType, initValue, DeviceDescriptor.getCPtr(device), name), true) { if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
public NDArrayView AsShape(NDShape newShape) { global::System.IntPtr cPtr = CNTKLibPINVOKE.NDArrayView_AsShape(swigCPtr, NDShape.getCPtr(newShape)); NDArrayView ret = (cPtr == global::System.IntPtr.Zero) ? null : new NDArrayView(cPtr, true); if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public Variable(NDShape shape, VariableKind varType, DataType dataType, NDArrayView value, bool needsGradient, AxisVector dynamicAxes, bool isSparse, string name, string uid) : this(CNTKLibPINVOKE.new_Variable__SWIG_3(NDShape.getCPtr(shape), (int)varType, (int)dataType, NDArrayView.getCPtr(value), needsGradient, AxisVector.getCPtr(dynamicAxes), isSparse, name, uid), true) { if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
public NDMask(NDShape shape, DeviceDescriptor device) : this(CNTKLibPINVOKE.new_NDMask__SWIG_0(NDShape.getCPtr(shape), DeviceDescriptor.getCPtr(device)), true) { if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }