Skip to content

Commit fb17329

Browse files
committed
Renaming of "Cortex-M7 SIMD" in commens to DSP
* removed odd "micro_dev" * fixes for instrinsics' functions comments
1 parent 9c403fe commit fb17329

File tree

15 files changed

+32
-32
lines changed

15 files changed

+32
-32
lines changed

python/tvm/relay/op/strategy/arm_cpu.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def schedule_concatenate_arm_cpu(_, outs, target):
4949
return topi.arm_cpu.schedule_concatenate(outs)
5050

5151

52-
@schedule_pool.register(["arm_cpu", "micro_dev"])
52+
@schedule_pool.register(["arm_cpu"])
5353
def schedule_pool_arm_cpu(attrs, outs, target):
5454
"""schedule pooling ops arm cpu"""
5555
layout = attrs.layout
@@ -437,7 +437,7 @@ def schedule_bitserial_dense_arm_cpu(attrs, inputs, out_type, target):
437437
return strategy
438438

439439

440-
@dense_strategy.register(["arm_cpu", "micro_dev"])
440+
@dense_strategy.register(["arm_cpu"])
441441
def schedule_dense_arm_cpu(attrs, inputs, out_type, target):
442442
"""dense arm cpu strategy"""
443443
strategy = _op.OpStrategy()
@@ -446,7 +446,7 @@ def schedule_dense_arm_cpu(attrs, inputs, out_type, target):
446446
strategy.add_implementation(
447447
wrap_compute_dense(topi.nn.dense),
448448
wrap_topi_schedule(topi.arm_cpu.schedule_dense_direct_simd),
449-
name="dense_direct_simd.micro_dev",
449+
name="dense_direct_simd",
450450
)
451451
else:
452452
strategy.add_implementation(
@@ -474,7 +474,7 @@ def conv1d_strategy_arm_cpu(attrs, inputs, out_type, target):
474474
strategy.add_implementation(
475475
wrap_compute_conv1d(topi.arm_cpu.conv1d_nwc_direct_simd),
476476
wrap_topi_schedule(topi.arm_cpu.schedule_conv1d_nwc_direct_simd),
477-
name="conv1d_direct_simd.micro_dev",
477+
name="conv1d_direct_simd",
478478
)
479479
else:
480480
raise RuntimeError(

python/tvm/topi/arm_cpu/conv1d.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020

2121
from tvm import autotvm
2222

23-
from .cortex_m7.conv1d import direct_simd as direct_simd_conv1d
23+
from .cortex_m7.conv1d import direct_simd
2424

2525

2626
@autotvm.register_topi_compute("conv1d_nwc_direct_simd.arm_cpu")
2727
def conv1d_nwc_direct_simd(cfg, data, kernel, strides, padding, dilation, out_dtype):
28-
"""Compute conv1d with SIMD (v7e-m)."""
29-
return direct_simd_conv1d.conv1d_nwc_direct_simd_compute(
28+
"""Compute conv1d with v7e-m DSP instructions."""
29+
return direct_simd.conv1d_nwc_direct_simd_compute(
3030
cfg, data, kernel, strides, padding, dilation, out_dtype
3131
)
3232

3333

3434
@autotvm.register_topi_schedule("conv1d_nwc_direct_simd.arm_cpu")
3535
def schedule_conv1d_nwc_direct_simd(cfg, outs):
36-
return direct_simd_conv1d.conv1d_nwc_direct_simd_schedule(cfg, outs)
36+
return direct_simd.conv1d_nwc_direct_simd_schedule(cfg, outs)

python/tvm/topi/arm_cpu/conv2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def _callback(op):
507507

508508
@autotvm.register_topi_compute("conv2d_nhwc_direct_simd.arm_cpu")
509509
def conv2d_nhwc_direct_simd(cfg, data, kernel, strides, padding, dilation, out_dtype):
510-
"""Compute conv2d_nhwc with SIMD (v7e-m)."""
510+
"""Compute conv2d_nhwc with v7e-m DSP instructions."""
511511
return direct_simd.conv2d_nhwc_direct_simd_compute(
512512
cfg, data, kernel, strides, padding, dilation, out_dtype
513513
)

python/tvm/topi/arm_cpu/cortex_m7/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
"""Schedules specialized for cortex-m7."""
17+
"""Schedules specialized for v7e-m DSP instructions."""
1818

1919

2020
from . import conv2d

python/tvm/topi/arm_cpu/cortex_m7/conv1d/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
"""Conv1d implementations for cortex-m7."""
17+
"""Conv1d implementations for v7e-m DSP instructions."""
1818

1919
from . import direct_simd

python/tvm/topi/arm_cpu/cortex_m7/conv1d/direct_simd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
def conv1d_nwc_direct_simd(*args, **kwargs):
34-
"""Defines the Cortex-M7 SIMD implementation of conv1d on NWC layout."""
34+
"""Defines the v7e-m DSP instructions of conv1d on NWC layout."""
3535
assert not kwargs, "Do not support kwargs in template function call"
3636
args = deserialize_args(args)
3737
data, kernel = args[:2]
@@ -50,7 +50,7 @@ def conv1d_nwc_direct_simd(*args, **kwargs):
5050

5151

5252
def conv1d_nwc_direct_simd_compute(cfg, data, kernel, strides, padding, dilation, out_dtype):
53-
"""Compute function for Cortex-M7 SIMD implementation of conv1d on NWC layout."""
53+
"""Compute function for v7e-m DSP instructions of conv1d on NWC layout."""
5454
if isinstance(strides, (tuple, list)):
5555
strides = strides[0]
5656
if isinstance(dilation, (tuple, list)):
@@ -133,7 +133,7 @@ def conv1d_nwc_direct_simd_compute(cfg, data, kernel, strides, padding, dilation
133133

134134

135135
def conv1d_nwc_direct_simd_schedule(cfg, outs):
136-
"""Schedule function for Cortex-M7 SIMD implementation of conv1d on NWC layout."""
136+
"""Schedule function for v7e-m DSP instructions of conv1d on NWC layout."""
137137
sched = te.create_schedule([x.op for x in outs])
138138

139139
def _callback(op):

python/tvm/topi/arm_cpu/cortex_m7/conv2d/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
"""Conv2d implementations for cortex-m7."""
17+
"""Conv2d implementations for v7e-m DSP instructions."""
1818

1919
from . import direct_simd

python/tvm/topi/arm_cpu/cortex_m7/conv2d/direct_simd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333

3434
def conv2d_nhwc_direct_simd(*args, **kwargs):
35-
"""Defines the Cortex-M7 SIMD implementation of conv2d."""
35+
"""Defines the v7e-m DSP instructions of conv2d."""
3636
assert not kwargs, "Do not support kwargs in template function call"
3737
args = deserialize_args(args)
3838
data, kernel = args[:2]
@@ -51,7 +51,7 @@ def conv2d_nhwc_direct_simd(*args, **kwargs):
5151

5252

5353
def conv2d_nhwc_direct_simd_compute(cfg, data, kernel, strides, padding, dilation, out_dtype):
54-
"""Compute function for Cortex-M7 SIMD implementation of conv2d."""
54+
"""Compute function for v7e-m DSP instructions of conv2d."""
5555
assert isinstance(strides, int) or len(strides) == 2
5656
assert isinstance(dilation, int) or len(dilation) == 2
5757

@@ -148,7 +148,7 @@ def conv2d_nhwc_direct_simd_compute(cfg, data, kernel, strides, padding, dilatio
148148

149149

150150
def conv2d_nhwc_direct_simd_schedule(cfg, outs):
151-
"""Schedule function for Cortex-M7 SIMD implementation of conv2d."""
151+
"""Schedule function for v7e-m DSP instructions of conv2d."""
152152
sched = te.create_schedule([x.op for x in outs])
153153

154154
def _callback(op):

python/tvm/topi/arm_cpu/cortex_m7/dense/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
"""Dense implementations for cortex-m7."""
17+
"""Dense implementations for v7e-m DSP instructions."""
1818

1919
from . import direct_simd

python/tvm/topi/arm_cpu/cortex_m7/dense/direct_simd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828

2929
def dense_direct_simd_schedule(outs):
30-
"""Schedule function for Cortex-M7 SIMD implementation of dense."""
30+
"""Schedule function for v7e-m DSP instructions of dense."""
3131
sched = te.create_schedule([x.op for x in outs])
3232

3333
def _callback(op):

0 commit comments

Comments
 (0)