Browse Source

Fix the bug of the TransData operator when shape is not divisible by cube_size(16)

pull/28/head
hanhuifeng2020 5 years ago
parent
commit
ccd71b1d93
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      python/akg/composite/topi.py

+ 2
- 2
python/akg/composite/topi.py View File

@@ -107,8 +107,8 @@ def trans_data(inputs, attrs):
output_shape = []
for i in range(0, len(shape) - 2):
output_shape.append(shape[i])
m1 = m // cs
n1 = n // cs
m1 = (m + cs - 1) // cs
n1 = (n + cs - 1) // cs
output_shape.extend([n1, m1, cs, cs])

def fcompute(*output_indices):


Loading…
Cancel
Save