FritzModelConfiguration

@objc(FritzModelConfiguration)
public class FritzModelConfiguration : NSObject, Codable
  • The unique id of this model

    Declaration

    Swift

    @objc
    public let identifier: String
  • The latest version of this model

    Declaration

    Swift

    @objc
    public let version: Int
  • The targeted version of this model, if any

    Declaration

    Swift

    public var pinnedVersion: Int?
  • Tags data set in webapp. Pulls from most recently updated active server response if one exists.

    Declaration

    Swift

    @objc
    public var tags: [String]? { get set }
  • Model Metadata set in webapp. Uses cached server model info if it exists.

    Declaration

    Swift

    @objc
    public var metadata: ModelMetadata? { get set }
  • Model downloads will only happen

    Declaration

    Swift

    @objc
    public var wifiRequiredForModelDownload: Bool { get set }
  • Whether or not this model should use CPU and GPU only (not using the ANE).

    Declaration

    Swift

    @objc
    public var cpuAndGPUOnly: Bool { get }
  • Declaration

    Swift

    @objc
    public var isOTA: Bool { get }
  • Declaration

    Swift

    override public var description: String { get }
  • Declaration

    Swift

    @objc(initWithIdentifier:version:encryptionSeed:src:tags:isWifiRequiredForDownloads:metadata:cpuAndGPUOnly:)
    public init(
      identifier: String,
      version: Int,
      encryptionSeed: [UInt8]?,
      src: URL?,
      tags: [String]?,
      wifiRequiredForModelDownload: Bool,
      metadata: ModelMetadata?,
      cpuAndGPUOnly: Bool
    )
  • Declaration

    Swift

    @objc(initWithIdentifier:version:pinnedVersion:encryptionSeed:src:tags:isWifiRequiredForDownloads:metadata:cpuAndGPUOnly:)
    public init(
      identifier: String,
      version: Int,
      pinnedVersion: Int,
      encryptionSeed: [UInt8]?,
      src: URL?,
      tags: [String]?,
      wifiRequiredForModelDownload: Bool,
      metadata: ModelMetadata?,
      cpuAndGPUOnly: Bool
    )
  • Declaration

    Swift

    @objc(initWithIdentifier:version:cpuAndGPUOnly:)
    public convenience init(identifier: String, version: Int, cpuAndGPUOnly: Bool = false)
  • Declaration

    Swift

    @objc(initWithIdentifier:version:pinnedVersion:cpuAndGPUOnly:)
    public convenience init(
      identifier: String,
      version: Int,
      pinnedVersion: Int,
      cpuAndGPUOnly: Bool = false
    )
  • Declaration

    Swift

    @objc(initFromIdentifiedModel:)
    public convenience init(from identifiedModel: BaseIdentifiedModel)
  • Declaration

    Swift

    @objc(initFromIdentifiedModelType:)
    public convenience init(from identifiedModelType: BaseIdentifiedModel.Type)
  • Declaration

    Swift

    @objc(isEqual:)
    override public func isEqual(_ object: Any?) -> Bool
  • Declaration

    Swift

    override public var hash: Int { get }