Merge branch 'main' into compute-units

pull/30/head
Pedro Cuenca 1 year ago
commit 8aab30712e

@ -91,7 +91,10 @@ struct ControlsView: View {
}
func modelDidChange(model: ModelInfo) {
guard pipelineLoader?.model != model && pipelineLoader?.computeUnits != generation.computeUnits else { return }
guard pipelineLoader?.model != model || pipelineLoader?.computeUnits != generation.computeUnits else {
print("Reusing same model \(model) with units \(generation.computeUnits)")
return
}
print("Loading model \(model)")
Settings.shared.currentModel = model

Loading…
Cancel
Save