Skip to content

Commit a77eafa

Browse files
Serhat Yilmazfacebook-github-bot
authored andcommitted
Fix 'initialized after field' error (pytorch#30908)
Summary: Pull Request resolved: pytorch#30908 Same as title. Test Plan: Wait for CI to clear. Reviewed By: bddppq, xw285cornell Differential Revision: D18862837 fbshipit-source-id: bc34356b85774fc20ba46d321c8a2bb5d5c727f6
1 parent baccd26 commit a77eafa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aten/src/ATen/native/cuda/Reduce.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,14 +300,14 @@ struct ReduceOp {
300300
ReduceOp(ops_t ops, ReduceConfig config, InputCalculator input_calc, OutputCalculator output_calc,
301301
const void* src, char* dst0, optional<char*> dst1, void* acc_buf, void* cta_buf, int* semaphores, arg_t ident, int noutputs)
302302
: ops(ops)
303+
, ident(ident)
303304
, config(config)
304305
, input_calc(input_calc)
305306
, output_calc(output_calc)
306307
, src(src)
307308
, acc_buf(acc_buf)
308309
, cta_buf(cta_buf)
309310
, semaphores(semaphores)
310-
, ident(ident)
311311
, noutputs(noutputs) {
312312
dst[0] = dst0;
313313
if (dst1.has_value()) {

0 commit comments

Comments
 (0)