pub struct MobileDeploymentGenerator<F: Float + Debug + ScalarOperand> { /* private fields */ }
Expand description
Mobile deployment generator
Implementations§
Source§impl<F: Float + Debug + 'static + FromPrimitive + ScalarOperand + Send + Sync> MobileDeploymentGenerator<F>
impl<F: Float + Debug + 'static + FromPrimitive + ScalarOperand + Send + Sync> MobileDeploymentGenerator<F>
Sourcepub fn new(
model: Sequential<F>,
platform: MobilePlatform,
optimization: MobileOptimizationConfig,
metadata: PackageMetadata,
output_dir: PathBuf,
) -> Self
pub fn new( model: Sequential<F>, platform: MobilePlatform, optimization: MobileOptimizationConfig, metadata: PackageMetadata, output_dir: PathBuf, ) -> Self
Create a new mobile deployment generator
Sourcepub fn platform(&self) -> &MobilePlatform
pub fn platform(&self) -> &MobilePlatform
Get the target platform
Sourcepub fn generate(&self) -> Result<MobileDeploymentResult>
pub fn generate(&self) -> Result<MobileDeploymentResult>
Generate mobile deployment packages
Sourcepub fn generate_platform_packages(
&self,
model: &Sequential<F>,
) -> Result<Vec<PlatformPackage>>
pub fn generate_platform_packages( &self, model: &Sequential<F>, ) -> Result<Vec<PlatformPackage>>
Generate platform-specific packages for the model
Sourcepub fn generate_ios_package(
&self,
model: &Sequential<F>,
) -> Result<PlatformPackage>
pub fn generate_ios_package( &self, model: &Sequential<F>, ) -> Result<PlatformPackage>
Generate iOS package for the model
Sourcepub fn generate_android_package(
&self,
model: &Sequential<F>,
) -> Result<PlatformPackage>
pub fn generate_android_package( &self, model: &Sequential<F>, ) -> Result<PlatformPackage>
Generate Android package for the model
Sourcepub fn generate_ios_framework(&self, path: &Path) -> Result<()>
pub fn generate_ios_framework(&self, path: &Path) -> Result<()>
Generate iOS framework for deployment
Sourcepub fn generate_swift_wrapper(&self, path: &Path) -> Result<()>
pub fn generate_swift_wrapper(&self, path: &Path) -> Result<()>
Generate Swift wrapper for the model
Sourcepub fn generate_objc_wrapper(
&self,
header_path: &Path,
impl_path: &Path,
) -> Result<()>
pub fn generate_objc_wrapper( &self, header_path: &Path, impl_path: &Path, ) -> Result<()>
Generate Objective-C wrapper for the model
Sourcepub fn generate_android_aar(&self, path: &Path) -> Result<()>
pub fn generate_android_aar(&self, path: &Path) -> Result<()>
Generate Android AAR package
Sourcepub fn generate_java_wrapper(&self, path: &Path) -> Result<()>
pub fn generate_java_wrapper(&self, path: &Path) -> Result<()>
Generate Java wrapper for the model
Sourcepub fn generate_kotlin_wrapper(&self, path: &Path) -> Result<()>
pub fn generate_kotlin_wrapper(&self, path: &Path) -> Result<()>
Generate Kotlin wrapper for the model
Sourcepub fn generate_jni_wrapper(
&self,
header_path: &Path,
impl_path: &Path,
) -> Result<()>
pub fn generate_jni_wrapper( &self, header_path: &Path, impl_path: &Path, ) -> Result<()>
Generate JNI wrapper for native integration
Sourcepub fn benchmark_performance(
&self,
_model: &Sequential<F>,
) -> Result<PerformanceMetrics>
pub fn benchmark_performance( &self, _model: &Sequential<F>, ) -> Result<PerformanceMetrics>
Benchmark model performance on mobile platform
Sourcepub fn generate_integration_guides(&self) -> Result<Vec<PathBuf>>
pub fn generate_integration_guides(&self) -> Result<Vec<PathBuf>>
Generate integration guides for mobile deployment
Sourcepub fn generate_ios_integration_guide(&self) -> Result<PathBuf>
pub fn generate_ios_integration_guide(&self) -> Result<PathBuf>
Generate iOS-specific integration guide
Sourcepub fn generate_android_integration_guide(&self) -> Result<PathBuf>
pub fn generate_android_integration_guide(&self) -> Result<PathBuf>
Generate Android-specific integration guide
Sourcepub fn generate_optimization_guide(&self) -> Result<PathBuf>
pub fn generate_optimization_guide(&self) -> Result<PathBuf>
Generate optimization guide for mobile deployment
Auto Trait Implementations§
impl<F> Freeze for MobileDeploymentGenerator<F>
impl<F> !RefUnwindSafe for MobileDeploymentGenerator<F>
impl<F> Send for MobileDeploymentGenerator<F>where
F: Send,
impl<F> Sync for MobileDeploymentGenerator<F>where
F: Sync,
impl<F> Unpin for MobileDeploymentGenerator<F>
impl<F> !UnwindSafe for MobileDeploymentGenerator<F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more