/usr/local/lib64/python3.6/site-packages/torch/include/ATen/cudnn
NameSizeModeActions
cudnn-wrapper.h4930644editdlrm
Descriptors.h124420644editdlrm
Exceptions.h00644editdlrm
Handle.h2050644editdlrm
Handles.h440644editdlrm
Types.h3220644editdlrm
Utils.h5910644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/ATen/cudnn/Utils.h (591B)
#pragma once #include #include #include #include #include namespace at { namespace native { // cuDNN has a buggy check for tensor being contiguous (that is, it does // not ignore stride for dimension that is equal to 0). This function // makes tensors which have zero stride contiguous, by setting the // strides to 1 as cuDNN likes. inline Tensor contiguousIfZeroInStrides(const Tensor& t) { for (auto s : t.strides()) { if (s == 0) return t.contiguous(); } return t; } }}