Skip to content

Commit

Permalink
Only hash tensor desc
Browse files Browse the repository at this point in the history
  • Loading branch information
laggui committed Jan 24, 2025
1 parent e0a0317 commit 99b5fbe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions crates/burn-tensor/src/repr/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1695,8 +1695,6 @@ impl ModuleOperationDescription {
impl core::hash::Hash for FromDataOperationDescription {
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
self.out.hash(state);

self.data.bytes.hash(state);
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/burn-tensor/src/tensor/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub enum DataError {
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct TensorData {
/// The values of the tensor (as bytes).
pub(crate) bytes: Bytes,
bytes: Bytes,

/// The shape of the tensor.
pub shape: Vec<usize>,
Expand Down

0 comments on commit 99b5fbe

Please sign in to comment.