You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
333 B

//
// Utils.swift
// Diffusion
//
// Created by Pedro Cuenca on 14/1/23.
// See LICENSE at https://github.com/huggingface/swift-coreml-diffusers/LICENSE
//
import Foundation
extension String: Error {}
extension Double {
func formatted(_ format: String) -> String {
return String(format: "\(format)", self)
}
}