提交 bd9157f5 编写于 作者: L liuqi

Fix memory optimizer matrix type bug.

上级 d95b5cd5
......@@ -35,7 +35,7 @@ class MemoryOptimizer(object):
def get_mem_size(self, op_type, output_shape):
mem_size = [0, 0]
if op_type == 'WinogradTransform' or op_type == 'GEMM':
if op_type == 'WinogradTransform' or op_type == 'MatMul':
mem_size[0] = output_shape[2] * output_shape[3]
mem_size[1] = output_shape[0] * int((output_shape[1]+3)/4)
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册