diff options
author | 2016-05-07 22:22:44 -0800 | |
---|---|---|
committer | 2016-05-09 09:21:14 -0700 | |
commit | 6ff265ebae14586db5db623b7502ddbdbc8bbd12 (patch) | |
tree | d4df06ea887dfb603b22c9df1147b41b38994b54 /tensorflow/stream_executor/stream_executor_pimpl.cc | |
parent | a846576a67da4bdd0b610a17b5c8d0d92e41f094 (diff) |
Adding autotune to the Cudnn conv algorithm selection.
For now, use TF_CUDNN_USE_AUTOTUNE=1 to enable this feature. Once it is mature
enough, it will be turned on by default.
Support for the backward steps will be added later.
Change: 121769364
Diffstat (limited to 'tensorflow/stream_executor/stream_executor_pimpl.cc')
-rw-r--r-- | tensorflow/stream_executor/stream_executor_pimpl.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tensorflow/stream_executor/stream_executor_pimpl.cc b/tensorflow/stream_executor/stream_executor_pimpl.cc index acaa0efcb2..fe32039d71 100644 --- a/tensorflow/stream_executor/stream_executor_pimpl.cc +++ b/tensorflow/stream_executor/stream_executor_pimpl.cc @@ -286,6 +286,15 @@ bool StreamExecutor::SupportsDnn() const { return implementation_->SupportsDnn(); } +bool StreamExecutor::GetConvolveAlgorithms( + std::vector<dnn::AlgorithmType> *out_algorithms) { + dnn::DnnSupport *dnn_support = AsDnn(); + if (!dnn_support) { + return false; + } + return dnn_support->GetConvolveAlgorithms(out_algorithms); +} + dnn::DnnSupport *StreamExecutor::AsDnn() { mutex_lock lock{mu_}; if (dnn_ != nullptr) { |