/// <summary> /// Return the long based training parameter. /// </summary> /// <param name="key">Specifies the key of the value to get.</param> /// <returns>The long based value is returned.</returns> public long GetTrainingParameter(OrtTrainingLongParameter key) { UIntPtr val = UIntPtr.Zero; NativeApiStatus.VerifySuccess(NativeMethodsTraining.OrtGetParameter_long(_nativeHandle, key, out val)); return((long)val); }
/// <summary> /// Set the long based training parameters. /// </summary> /// <param name="key">Specifies the key of the value to set.</param> /// <param name="lVal">Specifies the value to be set.</param> public void SetTrainingParameter(OrtTrainingLongParameter key, long lVal) { NativeApiStatus.VerifySuccess(NativeMethodsTraining.OrtSetParameter_long(_nativeHandle, key, lVal)); }