pub struct RenderOutput<B: Backend> {
pub colors_sh_grad: B::FloatTensorPrimitive,
pub opacities_grad: B::FloatTensorPrimitive,
pub positions_2d_grad_norm: B::FloatTensorPrimitive,
pub positions_grad: B::FloatTensorPrimitive,
pub rotations_grad: B::FloatTensorPrimitive,
pub scalings_grad: B::FloatTensorPrimitive,
}Expand description
Outputs for rendering (backward).
Fields§
§colors_sh_grad: B::FloatTensorPrimitiveThe shape is [P, M * 3] <- [P, M, 3]
It is the gradient of colors_rgb_2d with respect to colors_sh.
opacities_grad: B::FloatTensorPrimitiveThe shape is [P, 1]
It is the gradient of colors_rgb_2d with respect to colors_sh_degree_max.
positions_2d_grad_norm: B::FloatTensorPrimitiveThe shape is [P]
It is the gradient norm of the 2D positions.
positions_grad: B::FloatTensorPrimitiveThe shape is [P, 3]
It is the gradient of colors_rgb_2d with respect to positions_3d.
rotations_grad: B::FloatTensorPrimitiveThe shape is [P, 4]
It is the gradient of colors_rgb_2d with respect to rotations.
scalings_grad: B::FloatTensorPrimitiveThe shape is [P, 3]
It is the gradient of colors_rgb_2d with respect to scalings.
Trait Implementations§
source§impl<B: Clone + Backend> Clone for RenderOutput<B>where
B::FloatTensorPrimitive: Clone,
impl<B: Clone + Backend> Clone for RenderOutput<B>where
B::FloatTensorPrimitive: Clone,
source§fn clone(&self) -> RenderOutput<B>
fn clone(&self) -> RenderOutput<B>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<B> Freeze for RenderOutput<B>
impl<B> RefUnwindSafe for RenderOutput<B>
impl<B> Send for RenderOutput<B>
impl<B> Sync for RenderOutput<B>
impl<B> Unpin for RenderOutput<B>
impl<B> UnwindSafe for RenderOutput<B>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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