Skip to content

Commit

Permalink
more pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jwfromm committed May 10, 2019
1 parent bc640e8 commit ea4e99f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions topi/python/topi/cuda/conv2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ def conv2d_cuda(cfg, data, kernel, strides, padding, dilation, layout='NCHW', ou
if cfg.template_key == 'winograd':
return winograd_cuda(cfg, data, kernel, strides, padding, dilation, layout, out_dtype,
pre_computed=False)
if cfg.template_key == 'int8' :
if (data.dtype=='int8' or data.dtype=='uint8'):
return conv2d_NCHWc_int8(cfg, data, kernel, strides, padding, dilation, layout, out_dtype)
if cfg.template_key == 'int8':
if (data.dtype == 'int8' or data.dtype == 'uint8'):
return conv2d_NCHWc_int8(
cfg, data, kernel, strides, padding, dilation, layout, out_dtype)

if layout == 'NCHW':
return nn.conv2d_nchw(data, kernel, strides, padding, dilation, out_dtype)
Expand Down

0 comments on commit ea4e99f

Please sign in to comment.