Skip to content

Commit

Permalink
Improved Tensor comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nestordemeure authored and akhilles committed Mar 31, 2024
1 parent 72ad74f commit 5ef3175
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/nox/src/tensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ use std::{
};
use xla::{ArrayElement, ElementType, NativeType};

/// Represents a tensor with a specific type `T`, dimensionality `D`, and parameterization `P`.
/// `P` dictates the underlying representation and operations available on the tensor.
/// Represents a tensor with a specific type `T`, dimensionality `D`, and underlying representation `P`.
#[repr(transparent)]
pub struct Tensor<T, D: TensorDim, P: Param = Op> {
pub(crate) inner: P::Inner,
Expand Down

0 comments on commit 5ef3175

Please sign in to comment.