Functions

The following functions are available globally.

  • Gets whether the CoreML execution provider is available.

    Declaration

    Objective-C

    BOOL ORTIsCoreMLExecutionProviderAvailable(void)

    Swift

    func ORTIsCoreMLExecutionProviderAvailable() -> Bool
  • Gets the ORT version string in format major.minor.patch.

    Available since 1.15.

    Declaration

    Objective-C

    NSString *_Nullable ORTVersion(void)

    Swift

    func ORTVersion() -> String?
  • This function sets the seed for generating random numbers. Use this function to generate reproducible results. It should be noted that completely reproducible results are not guaranteed.

    Declaration

    Objective-C

    void ORTSetSeed(int64_t seed)

    Swift

    func ORTSetSeed(_ seed: Int64)

    Parameters

    seed

    Manually set seed to use for random number generation.