@@ -763,7 +763,7 @@ Tensor miopen_convolution_forward(
763763
764764 auto memory_format = at::MemoryFormat::Contiguous;
765765 if (miopen_conv_use_channels_last (*input, *weight)) {
766- memory_format = (weight->ndimension () == 5 ) ? /* at::MemoryFormat::ChannelsLast3d*/ at::MemoryFormat::Contiguous : at::MemoryFormat::ChannelsLast;
766+ memory_format = (weight->ndimension () == 5 ) ? at::MemoryFormat::ChannelsLast3d : at::MemoryFormat::ChannelsLast;
767767 }
768768
769769 Tensor output_t = at::detail::empty_cuda (
@@ -872,7 +872,7 @@ Tensor miopen_depthwise_convolution_forward(
872872
873873 auto memory_format = at::MemoryFormat::Contiguous;
874874 if (miopen_conv_use_channels_last (*input, *weight)) {
875- memory_format = (weight->ndimension () == 5 ) ? /* at::MemoryFormat::ChannelsLast3d*/ at::MemoryFormat::Contiguous : at::MemoryFormat::ChannelsLast;
875+ memory_format = (weight->ndimension () == 5 ) ? at::MemoryFormat::ChannelsLast3d : at::MemoryFormat::ChannelsLast;
876876 }
877877
878878 Tensor output_t = at::detail::empty_cuda (
@@ -1074,7 +1074,7 @@ Tensor miopen_depthwise_convolution_backward_weight(
10741074
10751075 auto memory_format = at::MemoryFormat::Contiguous;
10761076 if (miopen_conv_use_channels_last (*input, *grad_output)) {
1077- memory_format = (input->ndimension () == 5 ) ? /* at::MemoryFormat::ChannelsLast3d*/ at::MemoryFormat::Contiguous : at::MemoryFormat::ChannelsLast;
1077+ memory_format = (input->ndimension () == 5 ) ? at::MemoryFormat::ChannelsLast3d : at::MemoryFormat::ChannelsLast;
10781078 }
10791079
10801080 Tensor grad_output_contig_t = grad_output->contiguous (memory_format);
@@ -1127,7 +1127,7 @@ Tensor miopen_convolution_backward_weight(
11271127
11281128 auto memory_format = at::MemoryFormat::Contiguous;
11291129 if (miopen_conv_use_channels_last (*input, *grad_output)) {
1130- memory_format = (input->ndimension () == 5 ) ? /* at::MemoryFormat::ChannelsLast3d*/ at::MemoryFormat::Contiguous : at::MemoryFormat::ChannelsLast;
1130+ memory_format = (input->ndimension () == 5 ) ? at::MemoryFormat::ChannelsLast3d : at::MemoryFormat::ChannelsLast;
11311131 }
11321132
11331133 Tensor grad_output_contig_t = grad_output->contiguous (memory_format);
@@ -1281,7 +1281,7 @@ Tensor miopen_convolution_backward_input(
12811281
12821282 auto memory_format = at::MemoryFormat::Contiguous;
12831283 if (miopen_conv_use_channels_last (*grad_output, *weight)) {
1284- memory_format = (weight->ndimension () == 5 ) ? /* at::MemoryFormat::ChannelsLast3d*/ at::MemoryFormat::Contiguous : at::MemoryFormat::ChannelsLast;
1284+ memory_format = (weight->ndimension () == 5 ) ? at::MemoryFormat::ChannelsLast3d : at::MemoryFormat::ChannelsLast;
12851285 }
12861286
12871287 Tensor grad_input_t = at::detail::empty_cuda (
@@ -1389,7 +1389,7 @@ Tensor miopen_depthwise_convolution_backward_input(
13891389
13901390 auto memory_format = at::MemoryFormat::Contiguous;
13911391 if (miopen_conv_use_channels_last (*grad_output, *weight)) {
1392- memory_format = (weight->ndimension () == 5 ) ? /* at::MemoryFormat::ChannelsLast3d*/ at::MemoryFormat::Contiguous : at::MemoryFormat::ChannelsLast;
1392+ memory_format = (weight->ndimension () == 5 ) ? at::MemoryFormat::ChannelsLast3d : at::MemoryFormat::ChannelsLast;
13931393 }
13941394
13951395 Tensor grad_input_t = at::detail::empty_cuda (
0 commit comments