pub struct Select {
pub input: AnnotatedNode,
pub buckets: AnnotatedNode,
}Fields§
§input: AnnotatedNode§buckets: AnnotatedNodeTrait Implementations§
Source§impl<B: BackendMarker> GraphIROperationBase<B> for Select
impl<B: BackendMarker> GraphIROperationBase<B> for Select
fn nodes(&self) -> Vec<AnnotatedNode>
fn output_shape(&self, ir: &GraphIR<B>) -> Result<Shape, GraphIRError>
fn output_batched(&self, ir: &GraphIR<B>) -> Result<bool, GraphIRError>
fn output_requires_grad(&self, ir: &GraphIR<B>) -> Result<bool, GraphIRError>
fn output_layout( &self, _ir: &GraphIR<B>, ) -> Result<Option<NonZeroUsize>, GraphIRError>
fn ancillary_buffers( &self, _ir: &GraphIR<B>, ) -> Result<Vec<(Shape, Option<NonZeroUsize>, bool)>, GraphIRError>
fn shorthand(&self) -> String
Source§impl<B: BackendMarker> GraphIROperationCompilable<B> for Selectwhere
B::Backend: CoreDeviceOps,
impl<B: BackendMarker> GraphIROperationCompilable<B> for Selectwhere
B::Backend: CoreDeviceOps,
fn forward_pass( &self, graph: &Graph<B::Backend>, output_node: NodeId, ) -> DeviceFunction<B::Backend>
fn backward_pass( &self, graph: &Graph<B::Backend>, output_node: NodeId, ) -> DeviceFunction<B::Backend>
Auto Trait Implementations§
impl Freeze for Select
impl RefUnwindSafe for Select
impl Send for Select
impl Sync for Select
impl Unpin for Select
impl UnsafeUnpin for Select
impl UnwindSafe for Select
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