Skip to content

Commit

Permalink
#7571: Fix build issue in WHB0
Browse files Browse the repository at this point in the history
  • Loading branch information
umadevimcw committed May 17, 2024
1 parent fd6379b commit b3da889
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tt_eager/tt_numpy/functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static Tensor index_width(
value = 0;
index = index + (shape[ultimate] - up_shape[ultimate]);
}// dim H
index = index + ((shape[penultimate] - up_shape[penultimate]) * TILE_WIDTH);
index = index + ((shape[penultimate] - up_shape[penultimate]) * tt::constants::TILE_WIDTH);
} //dim c
} // dim N
auto output = Tensor(OwnedStorage{owned_buffer}, shape, data_type, Layout::ROW_MAJOR).to(layout);
Expand Down Expand Up @@ -332,7 +332,7 @@ static Tensor index_height(
index = index + (shape[ultimate] - up_shape[ultimate]);
} // dim H
value = 0;
index = index + ((shape[penultimate] - up_shape[penultimate]) * TILE_WIDTH);
index = index + ((shape[penultimate] - up_shape[penultimate]) * tt::constants::TILE_WIDTH);
} // dim C
} // dim N
auto output = Tensor(OwnedStorage{owned_buffer}, shape, data_type, Layout::ROW_MAJOR).to(layout);
Expand Down Expand Up @@ -367,7 +367,7 @@ static Tensor index_all(
} // dim W
index = index + (shape[ultimate] - up_shape[ultimate]);
}// dim H
index = index + ((shape[penultimate] - up_shape[penultimate]) * TILE_WIDTH);
index = index + ((shape[penultimate] - up_shape[penultimate]) * tt::constants::TILE_WIDTH);
} // dim C
} // dim N
auto output = Tensor(OwnedStorage{owned_buffer}, shape, data_type, Layout::ROW_MAJOR).to(layout);
Expand Down Expand Up @@ -555,7 +555,7 @@ static Tensor index_channel(
index = index + (shape[ultimate] - up_shape[ultimate]);
} // dim H
value = value + 1;
index = index + ((shape[penultimate] - up_shape[penultimate]) * TILE_WIDTH);
index = index + ((shape[penultimate] - up_shape[penultimate]) * tt::constants::TILE_WIDTH);
} // dim C
value = 0;
} // dim N
Expand Down Expand Up @@ -591,7 +591,7 @@ static Tensor index_batch(
} // dim W
index = index + (shape[ultimate] - up_shape[ultimate]);
} // dim H
index = index + ((shape[penultimate] - up_shape[penultimate]) * TILE_WIDTH);
index = index + ((shape[penultimate] - up_shape[penultimate]) * tt::constants::TILE_WIDTH);
} // dim C
value = value + 1;
} // dim N
Expand Down

0 comments on commit b3da889

Please sign in to comment.