Skip to content

Commit 944dfda

Browse files
committed
update layer_norm and softmax examples
1 parent 2b797af commit 944dfda

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎examples/xegpu/layer_norm.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,10 @@ def parse_cli():
261261
{
262262
"layer_kind": "reduction",
263263
"sizes": args.sizes,
264-
"wg_rows": args.wg_rows,
265-
"sg_rows": args.sg_rows,
264+
"wg_tile": [args.wg_rows, 0],
265+
"sg_tile": [args.sg_rows, 0],
266+
"reduction_tile": [0, args.reduction_step_size],
266267
"subgroup_size": args.subgroup_size,
267-
"reduction_step_size": args.reduction_step_size,
268268
}
269269
]
270270
)

‎examples/xegpu/softmax.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ def parse_cli():
251251
{
252252
"layer_kind": "reduction",
253253
"sizes": args.sizes,
254-
"wg_rows": args.wg_rows,
255-
"sg_rows": args.sg_rows,
254+
"wg_tile": [args.wg_rows, 0],
255+
"sg_tile": [args.sg_rows, 0],
256+
"reduction_tile": [0, args.reduction_step_size],
256257
"subgroup_size": args.subgroup_size,
257-
"reduction_step_size": args.reduction_step_size,
258258
}
259259
]
260260
)

0 commit comments

Comments
 (0)