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 9, 2020
1 parent fbbf7e6 commit 6fdf2d8
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 6fdf2d8

Please sign in to comment.