Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ - (instancetype)initWithModel:(ETCoreMLModel *)model {
eventLogger:(const executorchcoreml::ModelEventLogger* _Nullable __unused)eventLogger
error:(NSError * __autoreleasing *)error {
if (self.ignoreOutputBackings) {
if (@available(macOS 11.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *)) {
if (@available(iOS 16.0, tvOS 16.0, watchOS 9.0, *)) {
predictionOptions.outputBackings = @{};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ BOOL is_backed_by_same_buffer(MLMultiArray *array1, MLMultiArray *array2) {
NSOrderedSet<NSString *> *output_names,
NSError * __autoreleasing *error) {
MLPredictionOptions *options = [MLPredictionOptions new];
if (@available(macOS 11.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *)) {
if (@available(iOS 16.0, tvOS 16.0, watchOS 9.0, *)) {
NSMutableDictionary<NSString *, id> *output_backings = [NSMutableDictionary dictionary];
NSEnumerator<NSString *> *enumerator = [output_names objectEnumerator];
for (MLMultiArray *output in outputs) {
Expand Down Expand Up @@ -687,7 +687,7 @@ - (void)addPrewarmedAsset:(ETCoreMLAsset *)asset {
eventLogger:eventLogger
error:&localError];
// Try without output backings.
if (@available(macOS 11.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *)) {
if (@available(iOS 16.0, tvOS 16.0, watchOS 9.0, *)) {
if (!modelOutputs && predictionOptions.outputBackings.count > 0) {
executor.ignoreOutputBackings = YES;
localError = nil;
Expand Down
Loading