We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 758c1e3 commit 94c053cCopy full SHA for 94c053c
coreml/whisper-encoder.mm
@@ -53,9 +53,11 @@ void whisper_coreml_encode(
53
error: nil
54
];
55
56
- whisper_encoder_implOutput * outCoreML = [(__bridge id) ctx->data predictionFromLogmel_data:inMultiArray error:nil];
+ @autoreleasepool {
57
+ whisper_encoder_implOutput * outCoreML = [(__bridge id) ctx->data predictionFromLogmel_data:inMultiArray error:nil];
58
- memcpy(out, outCoreML.output.dataPointer, outCoreML.output.count * sizeof(float));
59
+ memcpy(out, outCoreML.output.dataPointer, outCoreML.output.count * sizeof(float));
60
+ }
61
}
62
63
#if __cplusplus
0 commit comments