| 120 | } |
| 121 | |
| 122 | tensorflow::ComputeCapability GetComputeCapability( |
| 123 | se::StreamExecutor* stream_executor) { |
| 124 | tensorflow::ComputeCapability cc; |
| 125 | int cc_major, cc_minor; |
| 126 | stream_executor->GetDeviceDescription().cuda_compute_capability(&cc_major, |
| 127 | &cc_minor); |
| 128 | cc.set_major(cc_major); |
| 129 | cc.set_minor(cc_minor); |
| 130 | return cc; |
| 131 | } |
| 132 | |
| 133 | template<typename TResult, typename TLog> |
| 134 | void LogConvAutotuneResultsImpl(se::dnn::ConvolutionKind kind, |
no test coverage detected