pub struct HistogramddPlan<T: Element> { /* private fields */ }Expand description
histogramdd plan (reserved — returns Unsupported).
Status: API stub. select() always returns Unsupported
in the trailblazer; use HistogramPlan
for 1-D histograms today. This file pins the public surface
(Descriptor / Args / Plan struct names) so callers can
type-check against the eventual N-D path without churn.
When the real kernel lands: PyTorch torch.histogramdd
shape — input [numel, ndim], output flat
[prod(num_bins_per_dim)].
Implementations§
Source§impl<T: Element> HistogramddPlan<T>
impl<T: Element> HistogramddPlan<T>
Sourcepub fn select(
_stream: &Stream,
desc: &HistogramddDescriptor,
_pref: PlanPreference,
) -> Result<Self>
pub fn select( _stream: &Stream, desc: &HistogramddDescriptor, _pref: PlanPreference, ) -> Result<Self>
Pick a kernel for desc — returns Unsupported in trailblazer.
Sourcepub fn workspace_size(&self) -> usize
pub fn workspace_size(&self) -> usize
Workspace size in bytes.
Sourcepub fn precision_guarantee(&self) -> PrecisionGuarantee
pub fn precision_guarantee(&self) -> PrecisionGuarantee
Numerical guarantees for this plan’s kernel.
Sourcepub fn can_implement(&self, _args: &HistogramddArgs<'_, T>) -> Result<()>
pub fn can_implement(&self, _args: &HistogramddArgs<'_, T>) -> Result<()>
Validate args — always returns Unsupported.
Auto Trait Implementations§
impl<T> Freeze for HistogramddPlan<T>
impl<T> RefUnwindSafe for HistogramddPlan<T>where
T: RefUnwindSafe,
impl<T> Send for HistogramddPlan<T>where
T: Send,
impl<T> Sync for HistogramddPlan<T>where
T: Sync,
impl<T> Unpin for HistogramddPlan<T>where
T: Unpin,
impl<T> UnsafeUnpin for HistogramddPlan<T>
impl<T> UnwindSafe for HistogramddPlan<T>where
T: UnwindSafe,
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