pub unsafe trait CICoreMLModel: CIFilterProtocol {
// Provided methods
unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
where Self: Sized + Message { ... }
unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
where Self: Sized + Message { ... }
unsafe fn model(&self) -> Retained<MLModel>
where Self: Sized + Message { ... }
unsafe fn setModel(&self, model: &MLModel)
where Self: Sized + Message { ... }
unsafe fn headIndex(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setHeadIndex(&self, head_index: c_float)
where Self: Sized + Message { ... }
unsafe fn softmaxNormalization(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn setSoftmaxNormalization(&self, softmax_normalization: bool)
where Self: Sized + Message { ... }
}
Available on crate features
CIFilter
and CIFilterBuiltins
only.Expand description
Provided Methods§
unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
Available on crate feature
CIImage
only.Sourceunsafe fn setInputImage(&self, input_image: Option<&CIImage>)
Available on crate feature CIImage
only.
unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
CIImage
only.Setter for inputImage
.
unsafe fn model(&self) -> Retained<MLModel>
Available on crate feature
objc2-core-ml
only.Sourceunsafe fn setModel(&self, model: &MLModel)
Available on crate feature objc2-core-ml
only.
unsafe fn setModel(&self, model: &MLModel)
objc2-core-ml
only.Setter for model
.
unsafe fn headIndex(&self) -> c_float
Sourceunsafe fn setHeadIndex(&self, head_index: c_float)
unsafe fn setHeadIndex(&self, head_index: c_float)
Setter for headIndex
.
unsafe fn softmaxNormalization(&self) -> bool
Sourceunsafe fn setSoftmaxNormalization(&self, softmax_normalization: bool)
unsafe fn setSoftmaxNormalization(&self, softmax_normalization: bool)
Setter for softmaxNormalization
.