Skip to content

Commit

Permalink
Fix B operand variable name and comments (#1458)
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolu2 authored Jul 10, 2024
1 parent dbfced0 commit 81b06ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/cute/atom/mma_atom.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,12 @@ struct TiledMMA : MMA_Atom
auto t_tensor = logical_divide(btensor, t_tile); // (PermN,PermK)

// Tile the tensor for the Atom
auto a_tile = make_tile(make_layout(size<1>(AtomShape_MNK{})),
auto b_tile = make_tile(make_layout(size<1>(AtomShape_MNK{})),
make_layout(size<2>(AtomShape_MNK{})));
auto a_tensor = zipped_divide(t_tensor, a_tile); // ((AtomN,AtomK),(RestN,RestK))
auto b_tensor = zipped_divide(t_tensor, b_tile); // ((AtomN,AtomK),(RestN,RestK))

// Transform the Atom mode from (M,K) to (Thr,Val)
auto tv_tensor = a_tensor.compose(AtomLayoutB_TV{},_); // ((ThrV,FrgV),(RestN,RestK))
// Transform the Atom mode from (N,K) to (Thr,Val)
auto tv_tensor = b_tensor.compose(AtomLayoutB_TV{},_); // ((ThrV,FrgV),(RestN,RestK))

// Tile the tensor for the Thread
auto thr_tile = make_tile(_,
Expand Down Expand Up @@ -492,7 +492,7 @@ struct TiledMMA : MMA_Atom
// (bthrid,val) -> (N,K)
auto layoutB_TV = thrfrg_B(ref_B);

// (ThrV,(ThrM,ThrK)) -> (ThrV,(ThrM,ThrN,ThrK))
// (ThrV,(ThrN,ThrK)) -> (ThrV,(ThrM,ThrN,ThrK))
auto btile = make_tile(_,
make_tile(make_layout(make_shape (size<1>(thr_layout_vmnk_), size<2>(thr_layout_vmnk_)),
make_stride( Int<0>{} , Int<1>{} )),
Expand Down

0 comments on commit 81b06ee

Please sign in to comment.