GetTrainingApi property
Pointer<NativeFunction<Pointer<OrtTrainingApi> Function(Uint32 version)> >
GetTrainingApi
getter/setter pair
\name Ort Training @{ /** \brief Gets the Training C Api struct *
- Call this function to access the ::OrtTrainingApi structure that holds pointers to functions that enable
- training with onnxruntime.
- \note A NULL pointer will be returned and no error message will be printed if the training api
- is not supported with this build. A NULL pointer will be returned and an error message will be
- printed if the provided version is unsupported, for example when using a runtime older than the
- version created with this header file.
- \param
inversion Must be ::ORT_API_VERSION - \return The ::OrtTrainingApi struct for the version requested.
- \since Version 1.13 */
Implementation
external ffi.Pointer<
ffi.NativeFunction<ffi.Pointer<OrtTrainingApi> Function(ffi.Uint32 version)>
>
GetTrainingApi;