swift-coreml-diffusers icon indicating copy to clipboard operation
swift-coreml-diffusers copied to clipboard

Compile fixes for Xcode 14.3.1

Open rrva opened this issue 2 years ago • 3 comments

Did not compile on Xcode 14.3.1

Cannot convert value of type '()' to expected condition type 'Bool'

rrva avatar Aug 03 '23 08:08 rrva

Fixes #70

rrva avatar Aug 03 '23 08:08 rrva

could you possibly just also include the implicit declaration of type as well?

let deviceSupportsQuantization: Bool = {

I've had the compiler complain when this was missing a few times as well.

Have you tested that the current code builds in 14.3.1 with the current StableDiffusion package with these changes?

ghost avatar Aug 07 '23 11:08 ghost

Had the same issue, and this fixes the problem in 14.3.1 for me as well!

dkman94 avatar Jan 24 '24 06:01 dkman94