SwiftclassVisualGeneration
ModelManagerInferenceProvider
class VisualGeneration.ModelManagerInferenceProvider
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
Members 8
- var
static var available: Bool { get } - deinit
deinit - field
let _imageGenerator: VisualGeneration.AppleDiffusionImageGenerator+0x10 - field
let _requestsQueue: VisualGeneration.ModelManagerInferenceProvider.ImageGenerationRequestsQueue+0x18 - func
requestOneShot(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) async throws(ModelManagerServices.InferenceError) -> ModelManagerServices.ClientData - func
requestStream(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) -> ModelManagerServices.InferenceProviderStream - func
transitionAsset(_: ModelManagerServices.InferenceProviderAssetDescriptor, to: ModelManagerServices.LoadState) async throws(ModelManagerServices.InferenceError) -> () - init
VisualGeneration.ModelManagerInferenceProvider.__allocating_init() -> VisualGeneration.ModelManagerInferenceProvider
Header
class ModelManagerInferenceProvider { enum Error { enum CodingKeys { case unknownInferenceAsset case unavailableInferenceAsset case unknownRequest case invalidImageGeneratorType case invalidIPCFormat case ownIdentityTokenUnavailable case clientIdentityTokenUnavailable case failedToAssignSurfaceOwnership case taskIDTokenCanOnlyBeSerializedViaXPC case missingStyle } enum UnknownInferenceAssetCodingKeys { case identifier } enum UnavailableInferenceAssetCodingKeys { case identifier } enum UnknownRequestCodingKeys { case identifier } enum InvalidImageGeneratorTypeCodingKeys { case generatorType } enum InvalidIPCFormatCodingKeys {} enum OwnIdentityTokenUnavailableCodingKeys {} enum ClientIdentityTokenUnavailableCodingKeys {} enum FailedToAssignSurfaceOwnershipCodingKeys {} enum TaskIDTokenCanOnlyBeSerializedViaXPCCodingKeys {} enum MissingStyleCodingKeys {} case unknownInferenceAsset(identifier: Swift.String) case unavailableInferenceAsset(identifier: Swift.String) case unknownRequest(identifier: Swift.String) case invalidImageGeneratorType(generatorType: Swift.String) case invalidIPCFormat case ownIdentityTokenUnavailable case clientIdentityTokenUnavailable case failedToAssignSurfaceOwnership case taskIDTokenCanOnlyBeSerializedViaXPC case missingStyle } class ImageGenerationRequest { let uuid: Foundation.UUID var continuation: Swift.CheckedContinuation<(), Swift.Never>? let _canceller: VisualGeneration.StatefulCanceller let _generationID: Foundation.UUID let _recipe: VisualGeneration.GenerationRecipe } actor ImageGenerationRequestsQueue { var _requests: [VisualGeneration.ModelManagerInferenceProvider.ImageGenerationRequest] } struct Input { enum CodingKeys { case generationID case generationRecipe case clientAssetVersions } let generationID: Foundation.UUID let generationRecipe: VisualGeneration.GenerationRecipe let clientAssetVersions: [Swift.String : Swift.String?] } struct Output { enum CodingKeys { case currentStep case totalSteps case isFinalStep case generationResult } let currentStep: Swift.Int let totalSteps: Swift.Int? let isFinalStep: Swift.Bool let generationResult: VisualGeneration.ImageGenerator.Result? } let _imageGenerator: VisualGeneration.AppleDiffusionImageGenerator let _requestsQueue: VisualGeneration.ModelManagerInferenceProvider.ImageGenerationRequestsQueue init() final func requestStream(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) -> any ModelManagerServices.InferenceProviderStream final func requestOneShot(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) async throws(ModelManagerServices.InferenceError) -> ModelManagerServices.ClientData final func transitionAsset(_: ModelManagerServices.InferenceProviderAssetDescriptor, to: ModelManagerServices.LoadState) async throws(ModelManagerServices.InferenceError) static var available: Swift.Bool { get } deinit }