pub struct ResolvedValueBinding { /* private fields */ }Expand description
Value/resource binding shared by the execution plan and provider invocation. Keeping one representation prevents a lossy translation at the runtime boundary.
Implementations§
Source§impl ResolvedValueBinding
impl ResolvedValueBinding
pub fn new( value_id: ProgramValueId, role: ResolvedValueRole, ordinal: u32, tensor: ResolvedTensorSpec, access: TensorAccess, alias: AliasPolicy, usage: BufferUsage, weight: Option<ResolvedWeightBinding>, storage: ResolvedValueStorage, ) -> Result<Self, VNextError>
pub fn value_id(&self) -> &ProgramValueId
pub fn role(&self) -> ResolvedValueRole
pub fn ordinal(&self) -> u32
pub fn tensor(&self) -> &ResolvedTensorSpec
pub fn access(&self) -> TensorAccess
pub fn alias(&self) -> &AliasPolicy
pub const fn usage(&self) -> BufferUsage
pub fn weight(&self) -> Option<&ResolvedWeightBinding>
pub fn storage(&self) -> &ResolvedValueStorage
Trait Implementations§
Source§impl Clone for ResolvedValueBinding
impl Clone for ResolvedValueBinding
Source§fn clone(&self) -> ResolvedValueBinding
fn clone(&self) -> ResolvedValueBinding
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 ResolvedValueBinding
impl Debug for ResolvedValueBinding
Source§impl<'de> Deserialize<'de> for ResolvedValueBinding
impl<'de> Deserialize<'de> for ResolvedValueBinding
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 ResolvedValueBinding
Source§impl PartialEq for ResolvedValueBinding
impl PartialEq for ResolvedValueBinding
Source§impl Serialize for ResolvedValueBinding
impl Serialize for ResolvedValueBinding
impl StructuralPartialEq for ResolvedValueBinding
Auto Trait Implementations§
impl Freeze for ResolvedValueBinding
impl RefUnwindSafe for ResolvedValueBinding
impl Send for ResolvedValueBinding
impl Sync for ResolvedValueBinding
impl Unpin for ResolvedValueBinding
impl UnsafeUnpin for ResolvedValueBinding
impl UnwindSafe for ResolvedValueBinding
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