add clearCache() to Synthesizer to free MLX memory after synthesis
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -43,5 +43,9 @@ public final class Synthesizer: @unchecked Sendable {
|
||||
}
|
||||
}
|
||||
|
||||
public func clearCache() {
|
||||
MLX.Memory.clearCache()
|
||||
}
|
||||
|
||||
public static let sampleRate: Double = 24_000
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user