pub struct GeometricPooling;Expand description
Geometric pooling operations
Implementations§
Source§impl GeometricPooling
impl GeometricPooling
Sourcepub fn voxel_pool(
points: &[Point3D],
features: &Tensor,
voxel_size: f32,
) -> Result<(Vec<Point3D>, Tensor), TorshError>
pub fn voxel_pool( points: &[Point3D], features: &Tensor, voxel_size: f32, ) -> Result<(Vec<Point3D>, Tensor), TorshError>
Voxel-based pooling (divide space into voxels and pool within each)
Sourcepub fn farthest_point_sampling(
points: &[Point3D],
features: &Tensor,
num_samples: usize,
) -> Result<(Vec<Point3D>, Tensor), TorshError>
pub fn farthest_point_sampling( points: &[Point3D], features: &Tensor, num_samples: usize, ) -> Result<(Vec<Point3D>, Tensor), TorshError>
Farthest point sampling
Auto Trait Implementations§
impl Freeze for GeometricPooling
impl RefUnwindSafe for GeometricPooling
impl Send for GeometricPooling
impl Sync for GeometricPooling
impl Unpin for GeometricPooling
impl UnsafeUnpin for GeometricPooling
impl UnwindSafe for GeometricPooling
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more