Skip to content

Commit

Permalink
Fixes selection of cuDNN algorithm (#15881)
Browse files Browse the repository at this point in the history
  • Loading branch information
syed-ahmed authored and soumith committed Jan 18, 2019
1 parent 1ff075b commit 2ebb8fd
Show file tree
Hide file tree
Showing 2 changed files with 176 additions and 143 deletions.
3 changes: 0 additions & 3 deletions aten/src/ATen/cudnn/Descriptors.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@ struct AT_CUDA_API ConvolutionDescriptor
AT_CUDNN_CHECK(cudnnSetConvolutionNdDescriptor(mut_desc(), dim, pad, stride, upscale,
CUDNN_CROSS_CORRELATION, mathType));
AT_CUDNN_CHECK(cudnnSetConvolutionGroupCount(mut_desc(), groups));
AT_CUDNN_CHECK(cudnnSetConvolutionMathType(mut_desc(), CUDNN_DEFAULT_MATH));
if(dataType == CUDNN_DATA_HALF)
AT_CUDNN_CHECK(cudnnSetConvolutionMathType(mut_desc(), CUDNN_TENSOR_OP_MATH));
}
};

Expand Down
Loading

0 comments on commit 2ebb8fd

Please sign in to comment.