Skip to content

Commit

Permalink
bug: remove rhs and lhs from data layout
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Jan 27, 2025
1 parent c1c833d commit 2251a76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/execution/data_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ impl DataLayout {

let mut add_tensor = |tensor: &Tensor| {
let is_state = tensor.name() == "u" || tensor.name() == "dudt";
let is_rhs_or_lhs = tensor.name() == "rhs" || tensor.name() == "lhs";
// insert the data (non-zeros) for each tensor
layout_map.insert(tensor.name().to_string(), tensor.layout_ptr().clone());
if !is_state {
if !is_state && !is_rhs_or_lhs {
data_index_map.insert(tensor.name().to_string(), data.len());
data_length_map.insert(tensor.name().to_string(), tensor.nnz());
data.extend(vec![0.0; tensor.nnz()]);
Expand Down

0 comments on commit 2251a76

Please sign in to comment.