AndrewZhaoLuo commented on code in PR #11672:
URL: https://github.com/apache/tvm/pull/11672#discussion_r906294128
##########
tests/python/integration/test_tuning.py:
##########
@@ -274,10 +312,13 @@ def __init__(
do_fork=False,
runtime=None,
):
+ # pylint: disable=too-many-function-args
super().__init__(timeout, n_parallel, build_kwargs, build_func,
do_fork, runtime)
+
+ # pylint: disable=too-many-function-args
Review Comment:
that one was superfluous, removed
##########
tests/python/integration/test_dot.py:
##########
@@ -14,31 +14,46 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
+"""Test scheduling and running a dot product."""
+import numpy as np
+
import tvm
import tvm.testing
from tvm import te
-import numpy as np
@tvm.testing.requires_llvm
def test_dot():
- nn = 12
- n = tvm.runtime.convert(nn)
- A = te.placeholder((n,), name="A")
- B = te.placeholder((n,), name="B")
- k = te.reduce_axis((0, n), "k")
- C = te.compute((), lambda: te.sum(A[k] * B[k], axis=k), name="C")
- s = te.create_schedule(C.op)
+ """Test dot product."""
+ arr_length = 12
+ arr_lenght_tvm = tvm.runtime.convert(arr_length)
Review Comment:
Done
--
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]