-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support 1684 masked fill static
Change-Id: I9644c27dc9d5cd096ade6f3fb2613e9a49d135ec
- Loading branch information
1 parent
34e83f5
commit 5721ed0
Showing
11 changed files
with
153 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Copyright (C) 2022 Sophgo Technologies Inc. All rights reserved. | ||
// | ||
// TPU-MLIR is licensed under the 2-Clause BSD License except for the | ||
// third-party components. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include "tpu_mlir/Conversion/TopToTpu/LoweringBM1684.h" | ||
|
||
namespace tpu_mlir { | ||
namespace bm1684 { | ||
|
||
void MaskedFillLowering::LoweringF32(PatternRewriter &rewriter, top::MaskedFillOp op) const { | ||
lowering_common_f32<tpu::MaskedFillOp>(rewriter, op, 2); | ||
} | ||
|
||
void MaskedFillLowering::LoweringINT8(PatternRewriter &rewriter, top::MaskedFillOp op, | ||
bool asymmetric) const { | ||
lowering_common_f32<tpu::MaskedFillOp>(rewriter, op, 2); | ||
} | ||
|
||
} // namespace bm1684 | ||
} // namespace tpu_mlir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.