unsafe void IOperatorDescriptionMarshal.__MarshalFree(ref IntPtr pDesc) { var @ref = (__Native *)pDesc; ATensor.__MarshalFree(ref @ref->ATensor); AScaleTensor.__MarshalFree(ref @ref->AScaleTensor); if (AZeroPointTensor != null) { AZeroPointTensor.Value.__MarshalFree(ref @ref->AZeroPointTensor); } BTensor.__MarshalFree(ref @ref->BTensor); BScaleTensor.__MarshalFree(ref @ref->BScaleTensor); if (BZeroPointTensor != null) { BZeroPointTensor.Value.__MarshalFree(ref @ref->BZeroPointTensor); } OutputScaleTensor.__MarshalFree(ref @ref->OutputScaleTensor); if (OutputZeroPointTensor != null) { OutputZeroPointTensor.Value.__MarshalFree(ref @ref->OutputZeroPointTensor); } OutputTensor.__MarshalFree(ref @ref->OutputTensor); UnsafeUtilities.Free(@ref); }
unsafe void IOperatorDescriptionMarshal.__MarshalFree(ref IntPtr pDesc) { var @ref = (__Native *)pDesc; ATensor.__MarshalFree(ref @ref->ATensor); BTensor.__MarshalFree(ref @ref->BTensor); OutputTensor.__MarshalFree(ref @ref->OutputTensor); UnsafeUtilities.Free(@ref); }
unsafe IntPtr IOperatorDescriptionMarshal.__MarshalAlloc() { __Native * @ref = UnsafeUtilities.Alloc <__Native>(); @ref->ATensor = ATensor.__MarshalAlloc(); @ref->BTensor = BTensor.__MarshalAlloc(); @ref->OutputTensor = OutputTensor.__MarshalAlloc(); return(new(@ref)); }
unsafe IntPtr IOperatorDescriptionMarshal.__MarshalAlloc() { __Native * @ref = UnsafeUtilities.Alloc <__Native>(); @ref->ATensor = ATensor.__MarshalAlloc(); @ref->BTensor = BTensor.__MarshalAlloc(); @ref->OutputTensor = OutputTensor.__MarshalAlloc(); @ref->FusedActivation = (FusedActivation != null) ? FusedActivation.Value.__MarshalAlloc() : IntPtr.Zero; return(new(@ref)); }
unsafe IntPtr IOperatorDescriptionMarshal.__MarshalAlloc() { __Native * @ref = UnsafeUtilities.Alloc <__Native>(); @ref->ATensor = ATensor.__MarshalAlloc(); @ref->AZeroPointTensor = (AZeroPointTensor != null) ? AZeroPointTensor.Value.__MarshalAlloc() : IntPtr.Zero; @ref->BTensor = BTensor.__MarshalAlloc(); @ref->BZeroPointTensor = (BZeroPointTensor != null) ? BZeroPointTensor.Value.__MarshalAlloc() : IntPtr.Zero; @ref->OutputTensor = OutputTensor.__MarshalAlloc(); return(new(@ref)); }
unsafe void IOperatorDescriptionMarshal.__MarshalFree(ref IntPtr pDesc) { var @ref = (__Native *)pDesc; ATensor.__MarshalFree(ref @ref->ATensor); BTensor.__MarshalFree(ref @ref->BTensor); OutputTensor.__MarshalFree(ref @ref->OutputTensor); if (FusedActivation != null) { FusedActivation.Value.__MarshalFree(ref @ref->FusedActivation); } UnsafeUtilities.Free(@ref); }
unsafe IntPtr IOperatorDescriptionMarshal.__MarshalAlloc() { __Native * @ref = UnsafeUtilities.Alloc <__Native>(); @ref->ATensor = ATensor.__MarshalAlloc(); @ref->BTensor = BTensor.__MarshalAlloc(); @ref->CTensor = (CTensor != null) ? CTensor.Value.__MarshalAlloc() : IntPtr.Zero; @ref->OutputTensor = OutputTensor.__MarshalAlloc(); @ref->TransformA = TransformA; @ref->TransformB = TransformB; @ref->Alpha = Alpha; @ref->Beta = Beta; @ref->FusedActivation = (FusedActivation != null) ? FusedActivation.Value.__MarshalAlloc() : IntPtr.Zero; return(new(@ref)); }