Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: remove rhs and lhs from data layout #46

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading