public NDArrayViewPtrVector(NDArrayViewPtrVector other) : this(CNTKLibPINVOKE.new_NDArrayViewPtrVector__SWIG_1(NDArrayViewPtrVector.getCPtr(other)), true) { if (CNTKLibPINVOKE.SWIGPendingException.Pending) { throw CNTKLibPINVOKE.SWIGPendingException.Retrieve(); } }
private static Value _Create(NDShape sampleShape, NDArrayViewPtrVector sequences, DeviceDescriptor device, bool readOnly) { global::System.IntPtr cPtr = CNTKLibPINVOKE.Value__Create__SWIG_7(NDShape.getCPtr(sampleShape), NDArrayViewPtrVector.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); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NDArrayViewPtrVector obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }