aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/dnn.h
diff options
context:
space:
mode:
authorGravatar Xiaoqiang Zheng <zhengxq@google.com>2017-03-21 15:53:52 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-03-21 17:11:32 -0700
commitbe81281b3c9aba3749719e7b3b08cfb51ed55b42 (patch)
tree711475ee6227ed24f4aea9887454046434942100 /tensorflow/stream_executor/dnn.h
parentbc4bed8d08183dbb8232ee89f944e9a44e421782 (diff)
Add a multi-pass mode for autotuning. It tests the autotune multiple times,
and only if the winning margin exceeds a certain threshold, it is accepted. Change: 150822045
Diffstat (limited to 'tensorflow/stream_executor/dnn.h')
-rw-r--r--tensorflow/stream_executor/dnn.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tensorflow/stream_executor/dnn.h b/tensorflow/stream_executor/dnn.h
index 0a860e7ad8..d6b3f51705 100644
--- a/tensorflow/stream_executor/dnn.h
+++ b/tensorflow/stream_executor/dnn.h
@@ -702,6 +702,14 @@ class AlgorithmConfig {
void set_algorithm_no_scratch(AlgorithmType val) {
algorithm_no_scratch_ = val;
}
+ bool operator==(const AlgorithmConfig& other) const {
+ return this->algorithm_ == other.algorithm_ &&
+ this->algorithm_no_scratch_ == other.algorithm_no_scratch_;
+ }
+ bool operator!=(const AlgorithmConfig& other) const {
+ return !(*this == other);
+ }
+ string ToString() const;
private:
AlgorithmType algorithm_;