Update to 1.18.0 resources (#17)
* update to 1.18.0 resources * Update Package.swift Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com> * update --------- Co-authored-by: rachguo <rachguo@rachguos-Mini.attlocal.net> Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
This commit is contained in:
@@ -41,6 +41,17 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
@property BOOL onlyEnableForDevicesWithANE;
|
||||
|
||||
/**
|
||||
* Only allow CoreML EP to take nodes with inputs with static shapes. By default it will also allow inputs with
|
||||
* dynamic shapes. However, the performance may be negatively impacted if inputs have dynamic shapes.
|
||||
*/
|
||||
@property BOOL onlyAllowStaticInputShapes;
|
||||
|
||||
/**
|
||||
* Create an MLProgram. By default it will create a NeuralNetwork model. Requires Core ML 5 or later.
|
||||
*/
|
||||
@property BOOL createMLProgram;
|
||||
|
||||
@end
|
||||
|
||||
@interface ORTSessionOptions (ORTSessionOptionsCoreMLEP)
|
||||
|
||||
@@ -24,6 +24,9 @@ NSString* _Nullable ORTVersion(void);
|
||||
|
||||
/**
|
||||
* The ORT environment.
|
||||
* It maintains shared state including the default logger.
|
||||
*
|
||||
* @note One ORTEnv should be created before and destroyed after other ORT API usage.
|
||||
*/
|
||||
@interface ORTEnv : NSObject
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* session which will be moved to the device specified in the session option if needed.
|
||||
*
|
||||
* @param env The `ORTEnv` instance to use for the training session.
|
||||
* @param sessionOptions The `ORTSessionOptions` to use for the training session.
|
||||
* @param sessionOptions The optional `ORTSessionOptions` to use for the training session.
|
||||
* @param checkpoint Training states that are used as a starting point for training.
|
||||
* @param trainModelPath The path to the training onnx model.
|
||||
* @param evalModelPath The path to the evaluation onnx model.
|
||||
@@ -52,7 +52,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* keeps a strong (owning) pointer to the checkpoint state.
|
||||
*/
|
||||
- (nullable instancetype)initWithEnv:(ORTEnv*)env
|
||||
sessionOptions:(ORTSessionOptions*)sessionOptions
|
||||
sessionOptions:(nullable ORTSessionOptions*)sessionOptions
|
||||
checkpoint:(ORTCheckpoint*)checkpoint
|
||||
trainModelPath:(NSString*)trainModelPath
|
||||
evalModelPath:(nullable NSString*)evalModelPath
|
||||
|
||||
Reference in New Issue
Block a user