Skip to content

Commit

Permalink
Fix topi test for tensorcore (apache#5563)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramana Radhakrishnan authored and Trevor Morris committed Jun 18, 2020
1 parent 0f9e55c commit 991bd9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions topi/tests/python/test_topi_conv2d_nhwc_winograd.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ def test_conv2d_nhwc_winograd_direct():

def test_conv2d_nhwc_winograd_tensorcore():
"""Test the conv2d with winograd for nhwc layout"""
if not tvm.gpu(0).exist or not tvm.runtime.enabled("cuda"):
print("skip because cuda is not enabled..")
return
if not nvcc.have_tensorcore(tvm.gpu(0).compute_version):
return
verify_conv2d_nhwc(8, 64, 56, 64, 3, 1, 1, bgemm="tensorcore")
Expand Down

0 comments on commit 991bd9f

Please sign in to comment.