pub struct DataLoaderSlot;Expand description
Generic DataSource slot placeholder. Bind a concrete
DataSourceRuntime via Node::with_data_source(...).
Exposes NextBatch, Reset, OnDataLoaded per
docs/IR_AND_DSL.md §5c.2.
Implementations§
Source§impl DataLoaderSlot
impl DataLoaderSlot
Sourcepub fn next_batch(&self, g: &mut Graph) -> (Output, Output)
pub fn next_batch(&self, g: &mut Graph) -> (Output, Output)
NextBatch() -> (batch, labels) - Shape 2 (data source has
side effects). Returns two Output handles; the second is
optional in spec but always materialized in the DSL surface
for shape symmetry.
Sourcepub fn reset(&self, g: &mut Graph, trigger: Output) -> Output
pub fn reset(&self, g: &mut Graph, trigger: Output) -> Output
Reset(trigger) -> trigger - Shape 2.
Sourcepub fn on_data_loaded(&self, g: &mut Graph) -> Output
pub fn on_data_loaded(&self, g: &mut Graph) -> Output
OnDataLoaded() -> trigger - Shape 2 (one-shot
notification).
Trait Implementations§
Source§impl Clone for DataLoaderSlot
impl Clone for DataLoaderSlot
Source§fn clone(&self) -> DataLoaderSlot
fn clone(&self) -> DataLoaderSlot
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 moreimpl Copy for DataLoaderSlot
Source§impl Debug for DataLoaderSlot
impl Debug for DataLoaderSlot
Source§impl Default for DataLoaderSlot
impl Default for DataLoaderSlot
Source§fn default() -> DataLoaderSlot
fn default() -> DataLoaderSlot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DataLoaderSlot
impl RefUnwindSafe for DataLoaderSlot
impl Send for DataLoaderSlot
impl Sync for DataLoaderSlot
impl Unpin for DataLoaderSlot
impl UnsafeUnpin for DataLoaderSlot
impl UnwindSafe for DataLoaderSlot
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