echuraev commented on code in PR #13100:
URL: https://github.com/apache/tvm/pull/13100#discussion_r997245108
##########
python/tvm/relay/op/strategy/adreno.py:
##########
@@ -208,6 +208,13 @@ def schedule_injective_adreno(attrs, outs, target):
return topi.adreno.schedule_injective(outs)
+@schedule_reduce.register(["adreno"])
+def schedule_reduce_adreno(attrs, outs, target):
+ """schedule reduction ops for cuda"""
Review Comment:
Please rename `cuda`->`adreno`
##########
tests/python/relay/opencl_texture/test_reduction_texture.py:
##########
@@ -0,0 +1,53 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+import re
+import tvm
+import numpy as np
+from tvm import relay
+from tvm.relay import testing
+from tvm.contrib import utils
+from utils.adreno_utils import gpu_preprocess, build_run_compare
+
+
+dtype = tvm.testing.parameter("float32")
+
+
[email protected]_opencl
[email protected]_targets("opencl -device=adreno")
+def test_mean(target, dtype):
+ # NCHW
+ input_shape = (1, 3, 720, 1280)
+ A = relay.var("data", shape=input_shape, dtype=dtype)
+ mean = relay.mean(A, axis=1, keepdims=True)
+ mod = relay.Function([A], mean)
+ print(mod)
Review Comment:
Are these prints (here and in the next test) used for debugging purposes?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]