Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vinx13 committed Sep 12, 2022
1 parent b2e3ad1 commit 09ed7ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/tir/schedule/primitive/pad_einsum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ bool CheckTrivialBufferIndices(const T& buffer_access, Array<Var>* indices = nul

class EinsumExtractor : public ExprVisitor {
public:
explicit EinsumExtractor() = default;
EinsumExtractor() = default;

std::optional<Einsum> Extract(const Block& block) {
const BufferStoreNode* update = block->body.as<BufferStoreNode>();
Expand Down Expand Up @@ -493,4 +493,4 @@ struct PadEinsumTraits : public UnpackedInstTraits<PadEinsumTraits> {
TVM_REGISTER_INST_KIND_TRAITS(PadEinsumTraits);

} // namespace tir
} // namespace tvm
} // namespace tvm
3 changes: 1 addition & 2 deletions src/tir/schedule/transform.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ class ReplaceBufferMutator : public StmtExprMutator {
ReplaceBufferMutator(const Buffer& old_buffer, Buffer new_buffer,
Map<Block, Block>* block_sref_reuse);

ReplaceBufferMutator(const Map<Buffer, Buffer>& buffer_map,
Map<Block, Block>* block_sref_reuse);
ReplaceBufferMutator(const Map<Buffer, Buffer>& buffer_map, Map<Block, Block>* block_sref_reuse);

protected:
using StmtExprMutator::VisitExpr_;
Expand Down
1 change: 0 additions & 1 deletion tests/python/unittest/test_tir_schedule_pad_einsum.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def test_pad_matmul():
sch = tir.Schedule(matmul_before, debug_mask="all")
C = sch.get_block("C_shared")
sch.pad_einsum(C, [0, 1, 1])
print(sch.mod["main"].script())
tvm.ir.assert_structural_equal(matmul_expected, sch.mod["main"])
verify_trace_roundtrip(sch, mod=matmul_before)

Expand Down

0 comments on commit 09ed7ab

Please sign in to comment.