unsafe void IOperatorDescriptionMarshal.__MarshalFree(ref IntPtr pDesc) { var @ref = (__Native *)pDesc; if (InputTensor != null) { InputTensor.Value.__MarshalFree(ref @ref->InputTensor); } InputGradientTensor.__MarshalFree(ref @ref->InputGradientTensor); RoiTensor.__MarshalFree(ref @ref->RoiTensor); BatchIndicesTensor.__MarshalFree(ref @ref->BatchIndicesTensor); if (OutputGradientTensor != null) { OutputGradientTensor.Value.__MarshalFree(ref @ref->OutputGradientTensor); } if (OutputROIGradientTensor != null) { OutputROIGradientTensor.Value.__MarshalFree(ref @ref->OutputROIGradientTensor); } UnsafeUtilities.Free(@ref); }
unsafe void IOperatorDescriptionMarshal.__MarshalFree(ref IntPtr pDesc) { var @ref = (__Native *)pDesc; InputTensor.__MarshalFree(ref @ref->InputTensor); RoiTensor.__MarshalFree(ref @ref->RoiTensor); OutputTensor.__MarshalFree(ref @ref->OutputTensor); UnsafeUtilities.Free(@ref); }