aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/dnn.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-05-15 07:28:24 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-15 07:31:09 -0700
commit14d8615d2f316b03c81e8286f4260865deeba5d4 (patch)
tree2b234f0c0a7c8ff8f2a7b30c1b49572f9085733b /tensorflow/stream_executor/dnn.h
parente3f2b763fbca307e07647d0d52c4dab0332eb925 (diff)
Small polishing changes in stream executor, no functional changes.
PiperOrigin-RevId: 196665609
Diffstat (limited to 'tensorflow/stream_executor/dnn.h')
-rw-r--r--tensorflow/stream_executor/dnn.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/tensorflow/stream_executor/dnn.h b/tensorflow/stream_executor/dnn.h
index 5b533dedcb..38abc66079 100644
--- a/tensorflow/stream_executor/dnn.h
+++ b/tensorflow/stream_executor/dnn.h
@@ -1051,10 +1051,8 @@ class DnnSupport {
// convolution result.
// scratch_allocator: un-owned, may-be-null object that may allocate scratch
// space in order to speed up the convolution operation.
- // algorithm: specifies which algorithm should be used for the
- // operation. If algorithm.is_default(), the system will pick an algorithm
- // by default. The coding of the algorithm is be interpretted by the
- // underlying implementation.
+ // algorithm_config: specifies which algorithm should be used for the
+ // operation.
// output_profile_result: the output profile result for this call. The
// profiling is only enabled when this is not nullptr.
//
@@ -1153,17 +1151,13 @@ class DnnSupport {
// convolution input.
// filter_descriptor: dimensions of the convolution filter.
// convolution_descriptor: stride of the convolution filter.
- // input. This can be DeviceMemory pointing to NULL only when activation_mode
- // is kNone.
// output_descriptor: dimensions of the output layer.
// output_data: un-owned device memory region in which to place the
// convolution result.
// scratch_allocator: un-owned, may-be-null object that may allocate scratch
// space in order to speed up the convolution operation.
- // algorithm: an integer to specify which algorithm should be used for the
- // operation. kDefaultAlgorithm means the system will pick an algorithm
- // by default. The coding of the algorithm is be interpreted by the
- // underlying implementation.
+ // algorithm_config: specifies which algorithm should be used for the
+ // operation.
// output_profile_result: the output profile result for this call. The
// profiling is only enabled when this is not nullptr.
//
@@ -1220,6 +1214,7 @@ class DnnSupport {
ProfileResult* output_profile_result) = 0;
// Return a list of algorithms supported by the forward convolution pass.
+ // cc_major and cc_minor are the compute capabilities of the device.
virtual bool GetConvolveAlgorithms(
bool with_winograd_nonfused, int cc_major, int cc_minor,
std::vector<AlgorithmDesc>* out_algorithms);