pub struct CudaOxideModelPlan {
pub spec: ModelSpec,
pub runtime: CudaOxideRuntimeConfig,
pub module_name: String,
pub kernel_names: Vec<String>,
}Expand description
Data type for cuda-oxide model plan.
Fields§
§spec: ModelSpecThe model spec value.
runtime: CudaOxideRuntimeConfigThe runtime value.
module_name: StringThe cuda-oxide module name value.
kernel_names: Vec<String>The kernel names value.
Implementations§
Source§impl CudaOxideModelPlan
impl CudaOxideModelPlan
Sourcepub fn new(
spec: ModelSpec,
module_name: impl Into<String>,
kernel_names: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn new( spec: ModelSpec, module_name: impl Into<String>, kernel_names: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Creates a new value.
Sourcepub fn runtime(self, runtime: CudaOxideRuntimeConfig) -> Self
pub fn runtime(self, runtime: CudaOxideRuntimeConfig) -> Self
Returns runtime.
Sourcepub fn attributes(&self) -> BTreeMap<String, String>
pub fn attributes(&self) -> BTreeMap<String, String>
Returns attributes for prediction metadata and traces.
Trait Implementations§
Source§impl Clone for CudaOxideModelPlan
impl Clone for CudaOxideModelPlan
Source§fn clone(&self) -> CudaOxideModelPlan
fn clone(&self) -> CudaOxideModelPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CudaOxideModelPlan
impl Debug for CudaOxideModelPlan
Source§impl<'de> Deserialize<'de> for CudaOxideModelPlan
impl<'de> Deserialize<'de> for CudaOxideModelPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CudaOxideModelPlan
Source§impl PartialEq for CudaOxideModelPlan
impl PartialEq for CudaOxideModelPlan
Source§fn eq(&self, other: &CudaOxideModelPlan) -> bool
fn eq(&self, other: &CudaOxideModelPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CudaOxideModelPlan
impl Serialize for CudaOxideModelPlan
impl StructuralPartialEq for CudaOxideModelPlan
Auto Trait Implementations§
impl Freeze for CudaOxideModelPlan
impl RefUnwindSafe for CudaOxideModelPlan
impl Send for CudaOxideModelPlan
impl Sync for CudaOxideModelPlan
impl Unpin for CudaOxideModelPlan
impl UnsafeUnpin for CudaOxideModelPlan
impl UnwindSafe for CudaOxideModelPlan
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