onnxruntime/objectivec/test/test_utils.h
Vrajang Parikh 960e320dff
Objective C Training API: TrainingSession (#16374)
### Description
- Implement Objective-C binding for `ORTTrainingSession`
- Add `ORTUtils` utility class to handle conversion between C++ and
Objective-C types
- Add test case for saving checkpoint
- Add unit test cases for `ORTTrainingSession`

### Motivation and Context
This PR is part of implementing Objective-C bindings for training API.
It implements objective-c binding for training session. The objective-C
API closely resembles the C++ API.

---------

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2023-06-28 09:13:56 -07:00

21 lines
451 B
Objective-C

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#import <Foundation/Foundation.h>
#import <XCTest/XCTest.h>
#import "ort_session.h"
#import "ort_env.h"
#import "ort_value.h"
NS_ASSUME_NONNULL_BEGIN
namespace test_utils {
NSString* _Nullable createTemporaryDirectory(XCTestCase* testCase);
NSArray<NSNumber*>* getFloatArrayFromData(NSData* data);
} // namespace test_utils
NS_ASSUME_NONNULL_END