Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoyaoding committed Jun 11, 2023
1 parent d675667 commit 5a0bae1
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 413 deletions.
186 changes: 0 additions & 186 deletions experiments/matmul-parallel-k/main.py

This file was deleted.

5 changes: 1 addition & 4 deletions python/hidet/graph/ops/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ def __init__(self, name: str, x: TensorNode, y: TensorNode, op: Callable[[Any, A
inverse_map = {}
for inp, inp_shape in zip([x, y], [x.shape, y.shape]):
if same_list(inp_shape, z_shape):
inverse_map[inp] = InverseMap.from_lambda(
lambda *indices: indices,
num_args=len(inp_shape),
)
inverse_map[inp] = InverseMap.from_lambda(lambda *indices: indices, num_args=len(inp_shape))
elif prod(inp_shape) == prod(z_shape):
inverse_map[inp] = InverseMap.from_lambda(
lambda *indices: [0 for _ in range(len(z_shape) - len(inp_shape))] + list(indices),
Expand Down
Loading

0 comments on commit 5a0bae1

Please sign in to comment.