We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6f2a56 commit 6719b46Copy full SHA for 6719b46
1 file changed
deepspeed/profiling/flops_profiler/profiler.py
@@ -534,7 +534,7 @@ def _conv_flops_compute(input,
534
batch_size = input.shape[0]
535
in_channels = input.shape[1]
536
out_channels = weight.shape[0]
537
- kernel_dims = list(weight.shape[-2:])
+ kernel_dims = list(weight.shape[2:])
538
input_dims = list(input.shape[2:])
539
540
length = len(input_dims)
@@ -575,7 +575,7 @@ def _conv_trans_flops_compute(
575
576
577
578
579
580
581
0 commit comments