forked from PaddlePaddle/Paddle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request PaddlePaddle#18 from Superjomn/refine-tile
add tile transform
- Loading branch information
Showing
11 changed files
with
82 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#pragma once | ||
#include "cinn/common/shared.h" | ||
|
||
namespace cinn { | ||
|
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 |
---|---|---|
@@ -1,27 +1,5 @@ | ||
#include "cinn/ir/operation.h" | ||
|
||
namespace cinn { | ||
namespace ir { | ||
|
||
Operation ExternOp::Make(std::string name, | ||
std::string tag, | ||
std::map<std::string, IrNodeRef> attrs, | ||
std::vector<Tensor> inputs, | ||
std::vector<Buffer> input_placeholders, | ||
std::vector<Buffer> output_placeholders, | ||
Stmt body) { | ||
auto n = common::make_shared<ExternOp>(); | ||
n->name = std::move(name); | ||
n->tag = std::move(tag); | ||
n->attrs = std::move(attrs); | ||
CHECK_EQ(inputs.size(), input_placeholders.size()); | ||
|
||
n->inputs = std::move(inputs); | ||
n->input_placeholders = std::move(input_placeholders); | ||
n->output_placeholders = std::move(output_placeholders); | ||
n->body = std::move(body); | ||
return Operation(n); | ||
} | ||
|
||
} // namespace ir | ||
namespace ir {} // namespace ir | ||
} // namespace cinn |
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
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 |
---|---|---|
@@ -1 +1,5 @@ | ||
#include "cinn/utils/functional.h" | ||
|
||
namespace cinn { | ||
namespace utils {} // namespace utils | ||
} // namespace cinn |