Skip to content

Commit b5701f1

Browse files
committed
linting
lint move schedule rule to own file lint p2 layout transform fixings
1 parent 592cf7b commit b5701f1

File tree

9 files changed

+335
-387
lines changed

9 files changed

+335
-387
lines changed

include/tvm/topi/transform.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,6 @@ inline Tensor layout_transform(const Tensor& src, const std::string& src_layout,
15991599
const std::string schedule_rule = "None",
16001600
const std::string name = "T_layout_trans",
16011601
const std::string tag = kInjective) {
1602-
// LOG(FATAL) << "WHATTT";
16031602
Layout src_layout_struct(src_layout);
16041603
Layout dst_layout_struct(dst_layout);
16051604

@@ -1616,11 +1615,10 @@ inline Tensor layout_transform(const Tensor& src, const std::string& src_layout,
16161615

16171616
Array<PrimExpr> dst_shape = layout_converter.ForwardShape(src->shape);
16181617

1619-
Map<String, ObjectRef> attrs = {
1620-
{"schedule_rule", String(schedule_rule)},
1621-
{"src_layout", String(src_layout)},
1622-
{"dst_layout", String(dst_layout)}
1623-
};
1618+
Map<String, ObjectRef> attrs = {{"schedule_rule", String(schedule_rule)},
1619+
// Information about layouts needed for the schedule rule
1620+
{"src_layout", String(src_layout)},
1621+
{"dst_layout", String(dst_layout)}};
16241622

16251623
return compute(
16261624
dst_shape,

python/test_2.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

python/tvm/meta_schedule/schedule/cuda/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
"""Per-block schedule rules in MetaSchedule for target key 'cuda'"""
18+
19+
from . import layout_transform

0 commit comments

Comments
 (0)