コード例 #1
0
 public void SetRange(int index, DoubleVectorVector values)
 {
     CNTKLibPINVOKE.DoubleVectorVector_SetRange(swigCPtr, index, DoubleVectorVector.getCPtr(values));
     if (CNTKLibPINVOKE.SWIGPendingException.Pending)
     {
         throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: Value.cs プロジェクト: nietras/CNTK
 private void _CopyVariableValueToDouble(Variable outputVariable, DoubleVectorVector sequences)
 {
     CNTKLibPINVOKE.Value__CopyVariableValueToDouble__SWIG_0(swigCPtr, Variable.getCPtr(outputVariable), DoubleVectorVector.getCPtr(sequences));
     if (CNTKLibPINVOKE.SWIGPendingException.Pending)
     {
         throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
 public DoubleVectorVector(DoubleVectorVector other) : this(CNTKLibPINVOKE.new_DoubleVectorVector__SWIG_1(DoubleVectorVector.getCPtr(other)), true)
 {
     if (CNTKLibPINVOKE.SWIGPendingException.Pending)
     {
         throw CNTKLibPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
ファイル: Value.cs プロジェクト: nietras/CNTK
        private static Value _CreateDenseDouble(NDShape sampleShape, DoubleVectorVector sequences, BoolVector sequenceStartFlags, DeviceDescriptor device)
        {
            global::System.IntPtr cPtr = CNTKLibPINVOKE.Value__CreateDenseDouble__SWIG_3(NDShape.getCPtr(sampleShape), DoubleVectorVector.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);
        }