jwfromm commented on a change in pull request #7146: URL: https://github.com/apache/tvm/pull/7146#discussion_r547662242
########## File path: tests/python/topi/python/test_topi_batch_matmul_tensorcore.py ########## @@ -0,0 +1,75 @@ +# 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. +"""Test code for batch_matmul operator""" +import numpy as np +import tvm +from tvm import te +from tvm import topi +import tvm.topi.testing +from tvm.topi.utils import get_const_tuple +from tvm.contrib.pickle_memoize import memoize + +import tvm.testing + +_batch_matmul_implement = { + "gpu": (topi.cuda.batch_matmul_tensorcore, topi.cuda.schedule_batch_matmul_tensorcore), +} + + +def verify_batch_matmul(x_batch, y_batch, M, N, K): + x = te.placeholder((x_batch, M, K), name="x") + y = te.placeholder((y_batch, N, K), name="y") + dtype = x.dtype Review comment: It may be worth testing other datatypes as well, especially `float16`. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
